Zend Framework with Kohana PHP 3?

Kohana autoloader expects lowercase filenames. You can register both Zend and Kohana autoloaders and it should work fine In bootstrap you have: Enable the Kohana auto-loader. * * @see docs.kohanaphp.com/features/autoloading * @see php.net/spl_autoload_register */ spl_autoload_register(array('Kohana', 'auto_load')) Zend autoloader should go before or after that (I don't know if that makes a difference).

Found a post how to do it: http://www.beyondcoding.com/2009/10/29/using-zend-framework-1-8-with-kohana.

Kohana autoloader expects lowercase filenames. You can register both Zend and Kohana autoloaders and it should work fine. In bootstrap you have: /** * Enable the Kohana auto-loader.

* * @see docs.kohanaphp.com/features/autoloading * @see php.net/spl_autoload_register */ spl_autoload_register(array('Kohana', 'auto_load')); Zend autoloader should go before or after that (I don't know if that makes a difference). Found a post how to do it: http://www.beyondcoding.com/2009/10/29/using-zend-framework-1-8-with-kohana.

I'm new to Kohana and don't really know where and how I'm supposed to define autoload for, lets say, every class name with Zend_ prefix. Bootstrap? How?

– Kemo Jan 23 '10 at 14:38 tnx for all your effort, I managed to do it myself – Kemo Jan 23 '10 at 15:13.

Its very important that your class name matches the file path in ko3. E.g. Your feed class is inside /classes/zend/feed.

Php so it must be named class Zend_Feed { if you don't like this you can create this file /classes/feed. Php and do this class Feed extends Zend_Feed { }.

It already is that way, zend's got a very similar autoload as kohana – Kemo Jan 23 '10 at 14:29.

As Pomyk says, try to use both autoloaders: php.net/manual/en/function.spl-autoload-... Reneming classes is bad practice, because it's very difficult to update and feauture support.

Your feed class is inside /classes/zend/feed. Php so it must be named class Zend_Feed { if you don't like this you can create this file /classes/feed.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions