Extend Yii Autoloader to load classes named using the Zend convention -
i'm experimenting yii framework , have come across slight snag. having come being heavy user of kohana, i'm used naming classes according zend convention. example:
new example_foo_bar;
would reference class in path:
example/foo/bar.php
however, in yii framework autoloader logic expects path be:
example/foo/example_foo_bar.php
before able locate , load class file, of course not ideal use-case. have tried using namespaces yii worked point, when try reference yii native class such model within namespaced class, trys load model current namespace expected not i'm after.
does know how extend yii autoloading mechanism able load classes using own convention , using zend convention well?
there extension this: zendautoloader
Comments
Post a Comment