-- Jacky Chen <[EMAIL PROTECTED]> wrote
(on Thursday, 07 December 2006, 11:36 PM +0800):
> 
> 
> 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.

Could you give a more detailed report of what's not working, then --
some code to reproduce the issue you're seeing?

I updated the code in dispatch() to, instead of calling
$dispatcher->setControllerDirectory(), it iterarates through each
directory registered and calls $dispatcher->addControllerDirectory().
Additionally, I modified the front controller's addControllerDirectory()
to no longer proxy to the dispatcher but instead store in
$_controllerDir for later use.

Please make sure you update your svn working directory, and retry tests.
If they still fail, give me the minimum amount of code that creates the
error, and I'll try to reproduce the issue.

Thanks!

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to