Issue Type: Performance Improvement Created: 2012-03-17T19:07:10.000+0000 Last Updated: 2012-04-16T19:34:21.000+0000 Status: Resolved Fix version(s): Reporter: Roger Mbiama Roger (angosso) Assignee: Ryan Mauger (bittarman) Tags: - Zend_Controller
Related issues: - ZFINC-135
Attachments:
index.php
registerNamespace('App\_'); //On charge les classes à utiliser ; Zend\_Loader::loadClass ( 'Zend\_Controller\_angosso.php' ); try { //getInstance() est utilisé pour récupérer une instance du contrôleur frontal. $front = Zend\_Controller\_angosso.php::getInstance(); //le contrôleur frontal renvoie les exceptions qu'il a rencontrées //à l'objet de réponse, nous offrant une possibilité élégante de les gérer. $front->throwExceptions(true); //setControllerDirectory() est utilisé pour //chercher les fichiers de //classes de contrôleurs d'action. $front->setControllerDirectory(APPLICATION\_PATH . 'angosso.net/application/controllers'); //Dispatch lance notre application, fait le gros travail du contrôleur frontal. //Il peut facultativement prendre un objet de requête et/ou un objet de réponse, //permettant ainsi au développeur de fournir des objets personnalisés. $front->dispatch(); //Traite les exceptions du contrôleur (généralement 404) } catch (Zend\_Controller\_Exception $e) { include 'errors/404.phtml'; //Traite les autres exceptions du contrôleur } catch (Exception $e) { include 'errors/500.phtml'; } ?>Posted by Roger Mbiama Roger (angosso) on 2012-03-17T19:09:18.000+0000
Posted by Matthew Weier O'Phinney (matthew) on 2012-03-19T02:25:00.000+0000
Please, can you translate your comments to English? I know a smattering of French, but it's mostly non-technical.
Posted by Ryan Mauger (bittarman) on 2012-04-16T19:34:21.000+0000
Having put this through google translae, it appears that you wish to change the index.php to allow you to deal with exceptions in a different manner. The error controller is an established manner that most people are used to using with Zend Framework, and as such, it would not make sense to introduce this as a change.
I'm closing this for the sake of not leaving it open for an eternity as you appear to have made no attempt to provide more information (or translate as requested), and the intent of this can only be derived from the code example and comments in it, and the actual request you are making is not entirely clear.