2006/12/7, Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
-- Jacky Chen <[EMAIL PROTECTED]> wrote (on Thursday, 07 December 2006, 03:55 PM +0800): > 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. Fixed in current HEAD. --
not work yet.