2008年12月17日星期三

Re: [fw-mvc] Action Controllers extending custom one and include path in version 1.7.1

-- iosonogio <iosonogio99@yahoo.com> wrote
(on Wednesday, 17 December 2008, 05:00 AM -0800):
>
>
> maybe somewhere in version 1.6.2 added the controllers path to the include
> path ?
>
> From what I've seen and you can see above it does not appear related
> to the '.' path... actually I even removed it in my last try!

ZF does not manipulate the include_path. That happens in either:

* your php.ini
* your web server settings (or .htaccess)
* your bootstrapping code

In all cases, this would happen outside of ZF.

Autoloading of controllers has never been supported, and we use
Zend_Loader::loadClass() within the dispatcher, passing it a directory
in which to look for the class file, when loading controllers during the
dispatch loop, This mechanism would never be used to find a custom base
controller class, as that class would never be loaded by the dispatcher.

ZF is not at fault here; something has changed in your environment or
code.

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: