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