Bonjour,
je commence à utiliser zend framework, pour cela j'utilise le tutoriel :
Débuter avec Zend Framework1.5
mais je bloque, j'ai bien mon .htaccess, mon mod_rewrite, mon AllowOverride à Off.. je crée le contrôleur, avec :
mais la seule page qui veut bien s'afficher correctement est:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 class IndexController extends Zend_Controller_Action { function indexAction() { $this->view->title = "Mes albums"; echo "coucou"; } function ajouterAction() { echo "bonjour ça va bien"; $this->view->title = "Ajouter un nouvel album"; } function modifierAction() { $this->view->title = "Modifier un album"; } function supprimerAction() { $this->view->title = "Supprimer un album"; } }
http://localhost/tutoriel-zf/
http://localhost/tutoriel-zf/public/ me donne l'erreur suivante:
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (public)' in C:\Program Files\wamp\www\tutoriel-zf\library\Zend\Controller\Dispatcher\Standard.php:241 Stack trace: #0 C:\Program Files\wamp\www\tutoriel-zf\library\Zend\Controller\Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 C:\Program Files\wamp\www\tutoriel-zf\index.php(20): Zend_Controller_Front->dispatch() #2 {main} thrown in C:\Program Files\wamp\www\tutoriel-zf\library\Zend\Controller\Dispatcher\Standard.php on line 241
Je comprends que le message me dit que le contrôleur "public" n'est pas spécifié,mais je ne sais pas quoi faire...je ne sais pas si c'est une histoire de code, de config...
merci d'avance à tous ceux qui voudront bien m'aider...
Partager