Bonjour,

J'ai un petit soucis: J'aimerais pouvoir redirigé l'utilisateur ou même afficher une erreur dans le cas ou une URL avec un mauvais controlleur serai entrée.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
 
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (test)' in C:\wamp\www\Monsite\library\Zend\Controller\Dispatcher\Standard.php:249 Stack trace: #0 C:\wamp\www\Monsite\library\Zend\Controller\Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 C:\wamp\www\Monsite\index.php(37): Zend_Controller_Front->dispatch() #2 {main} thrown in C:\wamp\www\Monsite\library\Zend\Controller\Dispatcher\Standard.php on line 249
Merci!