Ajout d'une action object_actions -> action does not exist ?
bonjour, voila j'utilise l'admin generator, je souhaite ajouter une action showInfos sur mes objets donc j'ai modifier mon generator.yml
Code:
1 2 3 4
| object_actions:
_edit:
label: Editer
showInfos: { label: Infos, action: showInfos} |
Puis j'ai rajouté dans actions\actions.class.php le code suivant
Code:
1 2 3 4 5 6 7 8
| class generalActions extends autoGeneralActions
{
public function executeShowInfos (sfWebRequest $request)
{
$this->hardware = Doctrine::getTable('hardware')->createQuery('a')->addWhere('id='.$request->getParameter("id"))->fetchOne();
$this->setTemplate('showInfos');
}
} |
j'ai ajouter dans les templates un fichier showInfosSuccess.php pour afficher mes infos
et donc quand je souhaite exécuter l'action j'ai l'erreur suivante
Code:
1 2
| 404 | Not Found | sfError404Exception
Action "general/action" does not exist. |