That is how I see it done by Fabien and I've done it this way myself.

chdir(sfConfig::get('sf_root_dir'));

Sent from my iPhone

On Nov 17, 2008, at 10:43 AM, "Olivier Mansour" <[EMAIL PROTECTED]>  
wrote:

> hello
>
> I have some troubles to lauch a task form an action
>
> what is the good method ?
>
> I am doing right now :
>
> $t = new myTask(sfContext::getInstance()->getEventDispatcher(), new  
> sfFormatter());
> $t->run(array(), array());
>
> Symfony throw an exception :
>  You must be in a symfony project directory.
>
> some chdir fix the stuf but is it a good solution ?
>
> Thanks
> Olivier
>
> -- 
> Olivier Mansour
> [EMAIL PROTECTED]
> http://www.glagla.org
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to