Call to undefined method après modification Product.class.php
Salut tout le monde,
Je ne suis pas très familière avec Symfony 1.4 mais je dois faire quelques modification pour le site web de l'entreprise.
J'ai rien fait de diabolique, j'ai juste ajouter une méthode à mon fichier Product.class.php
(qui se trouve ici
\lib\model\doctrine\omProductPlugin\Product.class.php)
voici la méthode en question :
Code:
1 2 3 4 5 6 7 8 9 10
| public static function getProductByLang($lang) {
$q = Doctrine_Query::create()
->select('*')
->from("Product p")
->leftJoin('p.Translation t')
->where('t.is_dispo="oui" and t.lang=?',array($lang));
$q=$q->execute();
return $q;
} |
jusque là tout va bien.
Je fais appel à cette méthode pendant la création de mon header dans le fichier :
\apps\front\modules\main\actions\component.class.php
Code:
1 2 3 4 5 6 7
| public function executeHeader(dmWebRequest $request)
{
// du code qui s'execute correctement
$lang=sfContext::getInstance()->getUser()->getCulture();
$this->productList=Product::getProductByLang($lang);
} |
j'ai une erreur :
Citation:
Fatal error: Call to undefined method Product::getProductByLang() in /monsiteweb/apps/front/modules/main/actions/components.class.php
J'ai clear le cache, j'ai redémarré apache, mais ça persiste.
Toute aide sera appréciable :)