Hi,
In new Zend_Controller_Front (svn 2172) implement,the
setControllerDirectory() and dispatch() methods have been modified.In the
code line 630,there is set the dispather controller directory in the
dispatch() method.So in my bootstrap file index.php , my code like this:
...
*$rout = new Zend_Controller_RewriteRouter();*
*$front = Zend_Controller_Front::getInstance();*
*$front->setRouter($router);
$front->setControllerDirectory(CONTROLLER_DIR);
// 添加模块控制器目录
if (!empty($controllers_dir)) {
foreach ($controllers_dir as $dir) {
 $front->addControllerDirectory(rtrim(CONTROLLER_DIR,'/\\').'/'.$dir);
}
}
$response = $front->dispatch();*
*...*
I set the controller directory with this statement
*$front->setControllerDirectory(CONTROLLER_DIR);
*And then add other controller directories in the *$controllers_dir *array
to the front controller.Becasue in the dispatch() method of the Front
Controller,there is a code in line 630 (the code is:*
$dispatcher->setControllerDirectory($this->getControllerDirectory());)*to
set the controller directory of the dispatcher,so all the directories i had
added have be reset to Front::_controllerDir which was set by call the
method setControllerDirectory() of the Front Controller.

My english is very poor,sorry for my english.
Best regards.**

Reply via email to