Je ne peux pas charger ce plugin comment puis-je charger cela?Zend Framework - Comment faire pour preDispatch pour tous les contrôleurs?
J'ai IndexController.php et j'ai OthersController.php. Pour tous ces contrôleurs, pour avoir une seule méthode preDispatch j'ai écrit un plugin comme suit. Pouvez-vous s'il vous plaît me guider gentiment, comment je peux maintenant joindre cela avec tous les autres contrôleurs ???
@file: application/contrôleurs/GlobalControllerPlugin.php
class GlobalControllerPlugin extends Zend_Controller_Plugin_Abstract { public function preDispatch() { $this->view->helloworld = '(from preDispatch)--->(controllers)--->(views)--->yesGreat)'; } }