loading url helper à partir d'une task
Bonjour,
je voudrais utiliser le helper URL à partir d'une task symfony, mais ça marche pas :?
voici la méthode execute de ma classe Task:
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
protected function execute($arguments = array(), $options = array())
{
$databaseManager = new sfDatabaseManager($this->configuration);
$connection = databaseManager->getDatabase($options['connection'])->getConnection();
$context = sfContext::createInstance($this->configuration);
$this->configuration->loadHelpers('Partial','Url');
...
$monUrl= url_for('produit/showExpProducts');
} |
avec ce code, j'obtiens l'erreur: Call to undefined function url_for :roll:
je compte sur votre aide!!!!