I'm currently experimenting with the Yii framework and have come across a slight snag. Having come from being a heavy user of Kohana, I'm used to naming classes according to the Zend convention. For example:
new Example_Foo_Bar;
would reference a class in the path:
Example/Foo/Bar.php
However, in the Yii framework the autoloader logic expects the path to be:
Example/Foo/Example_Foo_Bar.php
before it would be able to locate and load the class file, which of course is not ideal for my use-case. I have tried using namespaces with Yii which worked up to a point, but when I try to reference a Yii native class such as a model from within a namespaced class, it trys to load the model from the current namespace which is expected but certainly not what I'm after.
Does anyone know how to extend the Yii autoloading mechanism to be able to load classes using its own convention and using the Zend convention as well?