salut a tous j'ai un probleme avec mon appliaction zend et je voudrait bien que vous pouriiez m'aider a le resoudre mon projet est base sur le tuto 'getting-started-with-zend-framework-163'et voila l'architecture de mon projet


et voila le code de fichier 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
20
21
22
23
 
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
phpSettings.date.timezone = "UTC"
resources.layout.layoutpath = APPLICATION_PATH "/layouts"
[staging : production]
resources.db.adapter = MySQL
resources.db.params.host = localhost:3306
resources.db.params.username = root
resources.db.params.password = root
resources.db.params.dbname = zf-tutorial
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
 
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
et voila le code de fichier bootstrap

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
 
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initAutoload()
{
$moduleLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH));
return $moduleLoader;
}
protected function _initViewHelpers()
{
$this->bootstrap('layout');
$layout = $this->getResource('layout');
$view = $layout->getView();
$view->doctype('XHTML1_STRICT');
$view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$view->headTitle()->setSeparator(' - ');
$view->headTitle('Zend Framework Tutorial');
}
}
et finalement pour le fichier 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
26
27
28
 
<?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/loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);
 
// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV, 
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
            ->run();
le problem est que zend ne reconnait auccune des classe telque Zend_Application_Bootstrap_Bootstrap et 'Zend_Controller_Action et m'affiche l'eureur suivante

X-Powered-By: PHP/5.2.10 ZendServer/4.0
Set-Cookie: ZendDebuggerCookie=127.0.0.1%3A10137%3A0||084|77742D65|1003; path=/
Content-type: text/html

<br />
<b>Fatal error</b>: Class 'Zend_Controller_Action' not found in <b>C:\Documents and Settings\AROUS RAMZI\Zend\workspaces\DefaultWorkspace7\zf-tutorial\application\controllers\IndexController.php</b> on line <b>3</b><br />
pourtant j'ai mis un dossier zend conteenat ces classes dans le repertoire lybrary et j'ai meme chage le path dans le fichier ini de la facon suivante includePaths.library = APPLICATION_PATH "/../../library"