Bonjour,

j'ai suivi le tutorial *Débuter avec le Zend Framework (Approche MVC)* qui est très bien fait. Tout fonctionne bien jusqu'à la 5ème page (fin de l'étape VG), je n'ai aucun soucis. Puis jusqu'à la fin de la page, c'est là que ça se complique. J'obtiens le msg d'erreur suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
Fatal error: Uncaught exception 'Zend_Controller_Exception' with message 'IndexController::indexAction() does not exist and was not trapped in __call()' in C:\wamp\www\zf-tutorial\library\Zend\Controller\Action.php:421
Stack trace:
#0 [internal function]: Zend_Controller_Action->__call('indexAction', Array)
#1 C:\wamp\www\zf-tutorial\library\Zend\Controller\Action.php(438): IndexController->indexAction()
#2 C:\wamp\www\zf-tutorial\library\Zend\Controller\Dispatcher\Standard.php(214): Zend_Controller_Action->dispatch('indexAction')
#3 C:\wamp\www\zf-tutorial\library\Zend\Controller\Front.php(754): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#4 C:\wamp\www\zf-tutorial\index.php(32): Zend_Controller_Front->dispatch()
#5 {main} thrown in C:\wamp\www\zf-tutorial\library\Zend\Controller\Action.php on line 421
Ca met ce msg sur les urls suivants :
http://localhost/zf-tutorial/
http://localhost/zf-tutorial/index/
http://localhost/zf-tutorial/index/supprimer

La page s'affiche avec :
http://localhost/zf-tutorial/index/ajouter
http://localhost/zf-tutorial/index/modifier

Mais un msg d'erreur apparait dans les textbox avec l'url http://localhost/zf-tutorial/index/modifier :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
<br /><b>Notice</b>:  Trying to get property of non-object in <b>C:\wamp\www\zf-tutorial\application\views\scripts\index\_form.phtml</b> on line <b>6</b><br />
 
<br /><b>Notice</b>:  Trying to get property of non-object in <b>C:\wamp\www\zf-tutorial\application\views\scripts\index\_form.phtml</b> on line <b>11</b><br />
Si qqn pourrait m'aider, ce serait vraiment sympa de sa part