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:
avec ce code, j'obtiens l'erreur: Call to undefined function url_for
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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'); }
je compte sur votre aide!!!!
Partager