Jump to content

instantiate a personal lib class in symfony not working dies


cristalmolix

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.