-- Tomáš Procházka <[EMAIL PROTECTED]> wrote
(on Thursday, 18 October 2007, 07:37 PM +0200):
> Hi.
> 
> I need use Zend for my old project which use different style of class
> name. I use class.ClassName.php. Problem of Zend_Loader that I can't
> modify it. I can make extension, but Zend Internal use
> "Zend_Loader::loadClass($this->_rowClass);" I think, that this is not
> good idea.
> 
> When I have set this:
> MyZendLoader::registerAutoload('MyZendLoader');
> Zend_Loader should use this.
> 
> What about add this to loadClass() method?
> 
> if (spl_autoload_functions()!==false) spl_autoload_call($class);

The beauty of spl_autoload is that you can register as many autoloaders
as you want. If you need to register a different one for your own
classes, do so at any point either before or after calling
Zend_Loader::registerAutoload().

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

Reply via email to