Bonjour,

J'essaie actuellement Zend en suivant le tutoriel : http://s-jdm.developpez.com/tutoriel...end-framework/ et ça fonctionne correctement.

Maintenant j'essaie de créer un nouveau contrôleur "ComptesController" mais quand j'essaie d'aller sur une adresse du type : http://localhost/tutoriel-zf/public/comptes/index ça me met une erreur 404. Pourtant http://localhost/tutoriel-zf/index/index ou http://localhost/tutoriel-zf/index/create tout fonctionne très bien.

J'ai fait des recherches sur internet et je ne voie pas ce qui cloche.

Voici mon public/.htaccess
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Voici mon fichier de conf pour apache :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
	Alias /tutoriel-zf/ /home/dougui/workspace/Zend/tutoriel-zf/
	<Directory /home/dougui/workspace/Zend/tutoriel-zf/>
        	Options Indexes MultiViews FollowSymLinks
        	AllowOverride None
        	Order deny,allow
        	Allow from all
	</Directory>
Mon fichier public/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
 
<?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();
et mon fichier application/Bootstrap.php

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initAutoload()
	{
		$moduleLoader = new Zend_Application_Module_Autoloader(array(
			'namespace' => '',
			'basePath' => APPLICATION_PATH));
		return $moduleLoader;
	}
}
Quelqu'un peut m'aider?

Merci d'avance.