Author Topic: instantiate a personal lib class in symfony not working dies  (Read 528 times)

0 Members and 1 Guest are viewing this topic.

Offline cristalmolixTopic starter

  • Irregular
  • Posts: 21
    • View Profile
instantiate a personal lib class in symfony not working dies
« on: March 02, 2010, 01:46:20 PM »
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
Code: [Select]

this dosent work
Code: [Select]
public function executeHello2(sfWebRequest $request)
    {
        echo "dd";
        $file = new FileHandeler(); // dies here
        $i = $file->hello();
        echo $i;
        echo "dd";
        exit;
    }


this works

Code: [Select]
public function executeIndex(sfWebRequest $request)
    {
        $file = new FileHandeler();
        $this->file_res = $file->hello();
    }


Code: [Select]
//template

<?php

echo $file_res;

?>



cheers guys
« Last Edit: March 02, 2010, 01:55:51 PM by cristalmolix »

Offline cristalmolixTopic starter

  • Irregular
  • Posts: 21
    • View Profile
Re: instantiate a personal lib class in symfony not working dies
« Reply #1 on: March 02, 2010, 02:17:56 PM »
if your going to exit you have to include the class somhow