Sujet : Hoa_Controller_Exception_ControllerIsNotFound ne marche pas pour n app
Hey,
J'ai un projet Hoa avec 3 dossiers d'application.
Applications
Http_Sites
Http_Store
Http_BackOffice
Je voudrais faire une redirection vers l'accueil en cas d'echec du controller grâce à la classe Hoa_Controller_Exception_ControllerIsNotFound.
try {
$controller->dispatch();
}
catch ( Hoa_Controller_Exception_ControllerIsNotFound $e ) {
$parametre = array(
'data.array.personal' => array(
'module' => 'index',
'action' => 'index'
)
);
$controller->addRequest(0, $parametre);
$controller->dispatch();
}Si je vais sur http://hoatest.dev/aaa/, il me monte une exception alors que ce fichier existe bien.
Uncaught exception: Hoa_Controller_Dispatcher_Abstract::dispatch: (0) Primary controller IndexController should be in the file hoa://http_sites/Controller/Index.php, but this last is not found. in C:\wamp\www\Hoa_test\Framework\Library\Controller\Dispatcher\Abstract.php at 290.
Cette erreur n'apparaît pas les architecture simple avec le MVC directement dans Application/
J'ai même essayé de renommer mon fichier /Controller/Index.php en IndexController.php au cas où ça serait les règles de nommage des fichiers mais non c'est pas ça.
Dernière fois dit par Ecureuil Virtuel (01 Jun. 2010 15:47)