Bonjour

Après avoir crée un projet avec ZendTool j'ai bien eu une stucture sui marche et je suis content .
Après j'ai voulu faire quelques test, d'où j'ai commencé par les erreurs et j'ai appelé un contrôleur qui n'existe pas.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
http://localhost/zf/public/index1.php
d'où j'ai eu cette erreur
An error occurred
Page not found
Exception information:
Message: Invalid controller specified (index1.php)

Stack trace:
#0 C:\Server\xampp\htdocs\zf\library\Zend\Controller\Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 C:\Server\xampp\htdocs\zf\library\Zend\Application\Bootstrap\Bootstrap.php(77): Zend_Controller_Front->dispatch()
#2 C:\Server\xampp\htdocs\zf\library\Zend\Application.php(358): Zend_Application_Bootstrap_Bootstrap->run()
#3 C:\Server\xampp\htdocs\zf\public\index.php(26): Zend_Application->run()
#4 {main} Request Parameters:
array (
'controller' => 'index1.php',
'action' => 'index',
'module' => 'default',
)
jusqu'à la tout va bien puisque c'est programmé.

Puis j'ai j'ai jeté un coup d'œil dans le fichier application.ini


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
 
 
[production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
 
[staging : production]
 
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
 
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
et j'ai suprimmé la ligne [development : production]

d'où le message d'erreur programmé à disparu et j'ai l'erreur non programmé suivante
Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Section 'development' cannot be found in C:\Server\xampp\htdocs\zf\application/configs/application.ini' in C:\Server\xampp\htdocs\zf\library\Zend\Config\Ini.php:150 Stack trace: #0 C:\Server\xampp\htdocs\zf\library\Zend\Application.php(375): Zend_Config_Ini->__construct('C:\Server\xampp...', 'development') #1 C:\Server\xampp\htdocs\zf\library\Zend\Application.php(85): Zend_Application->_loadConfig('C:\Server\xampp...') #2 C:\Server\xampp\htdocs\zf\public\index.php(24): Zend_Application->__construct('development', 'C:\Server\xampp...') #3 {main} thrown in C:\Server\xampp\htdocs\zf\library\Zend\Config\Ini.php on line 150



sachant que mon fichier index est configuré pour juste version production

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
26
<?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();
Je ne vois pas d'où viens le probleme est ce que j'ai loupé quelque chose ?
devlopment est une section par defaut ?

Merci d'avance.