Hello,
I need to run a task from an action, NOT using exec, cant find how,
this is what im trying:
I cant find a instance of sfFormatter to pass
Any clue? I dont want to rely on exec to do this.
Thanks!!!!
Pablo
------------
public function executeIndex(sfWebRequest $request)
{
$this -> form = new ExportForm;
if ($request -> isMethod ('post')){
$this -> form -> bind ($request -> getParameter ('export'));
if ($this -> form -> isValid ()){
$email = $this -> form -> getValue ('email');
$task = new acopDumpEmailDataTask ($this->dispatcher,
$this->formatter); // the task runs fine from the command line (php
symfony acop:dump-email-data [email protected]
[email protected])
}
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---