Bonjour à tous, je débute sur Zend Framework et j'ai actuellement un problème qui va surement paraitre bête à bcp car l'erreur doit être simple mais je n'arrive pas à comprendre pourquoi cela ne fonctionne pas.
- Structure :
- index.php :
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
25 <?php // Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); // Ensure library/ is on include_path set_include_path(implode(PATH_SEPARATOR, array( realpath(APPLICATION_PATH . '/../library'), get_include_path(), ))); /** Zend_Application */ require_once 'Zend/Application.php'; // Create application, bootstrap, and run $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); $application->bootstrap() ->run();- indexController.php :
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 <?php class IndexController extends Zend_Controller_Action { public function init() { /* Initialize action controller here */ } public function indexAction() { // action body // titre de la page $this->view->title = "ShAdY! Contacts"; $gmail = new GmailContactGetter(); } }
Sans la ligne :tout fonctionne, mais des que je l'ajoute pour avoir accès à mes méthodes je n'ai aucune erreur juste une page blanche :/
Code : Sélectionner tout - Visualiser dans une fenêtre à part $gmail = new GmailContactGetter();
Alors je doit surement mal comprendre un truc mais je ne vois pas quoi
Merci d'avance pour votre aide![]()
Partager