$task = new sfTaskClassName();
$arguments = array();
$options = array();
$task->run($arguments, $options);

Arguments and options are the exact input you would give to the command
line.

 - Jon

On Thu, Apr 30, 2009 at 12:52 PM, fredlab <[email protected]> wrote:

>
> Hey,
>
> I would like to set up a link in an application so that it executes a
> task that you normally execute using the CLI interface ?
>
> Is it possible to do it and how ?
>
> I tried to find a tuto on this but I did not succeed.
>
> Regards,
>
> Frédéric
> >
>


-- 
Jonathan H. Wage
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
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