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 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 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
Archived
This topic is now archived and is closed to further replies.