cristalmolix Posted March 2, 2010 Share Posted March 2, 2010 hi guys im trying to instantiate a class in symfony action, it just dies, but it works if i dont exit and have a template for some reason irt works in teh index action this works this dosent work public function executeHello2(sfWebRequest $request) { echo "dd"; $file = new FileHandeler(); // dies here $i = $file->hello(); echo $i; echo "dd"; exit; } this works public function executeIndex(sfWebRequest $request) { $file = new FileHandeler(); $this->file_res = $file->hello(); } //template <?php echo $file_res; ?> cheers guys Quote Link to comment https://forums.phpfreaks.com/topic/193922-instantiate-a-personal-lib-class-in-symfony-not-working-dies/ Share on other sites More sharing options...
cristalmolix Posted March 2, 2010 Author Share Posted March 2, 2010 if your going to exit you have to include the class somhow Quote Link to comment https://forums.phpfreaks.com/topic/193922-instantiate-a-personal-lib-class-in-symfony-not-working-dies/#findComment-1020553 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.