is it possible to call an existing Symfony Task e.g from an action?
I dont want to do this with the terminal.
thanks...
public function executeSyncDocuments(sfWebRequest $request) {
chdir(sfConfig::get('sf_root_dir')); // Trick plugin into thinking you are in a project directory
$task = new SyncCNToCMSDocumentsTask($this->dispatcher, new sfFormatter());
$task->run(
array( //arguments
'erp-codes' => $request->getParameter('erpCodes')
),
array( //options
'update',
'env' => sfConfig::get('sf_environment'),
)
);
.......
}
Users browsing this forum: No registered users and 7 guests