Anything is ok when i use the old files of Zend/Controller,but it failed if
use the new Zend/Controller files.
my app directory layout is:
app
|------- controllers
| |----- IndexController.php
| |----- news
| | |----- NewsController.php
| | |----- CommentController.php
| |----- other directories and controllers
|-------- index.php
|-------- other directories and files
my app is running under MS Windows,files are readable and writable.
my bootstrape file is simple,following is the main code of the bootstrap
file:
// route request to spec controller
$router = new Zend_Controller_RewriteRouter();
$controller = Zend_Controller_Front::getInstance();
$controller->setRouter($router);
$controller->setControllerDirectory(CONTROLLER_DIR);
// add other controller directories
if (!empty($controllers_dir)) {
foreach ($controllers_dir as $dir) {
$controller->addControllerDirectory(rtrim(CONTROLLER_DIR,'/\\').'/'.$dir);
}
}
$response = $controller->dispatch();