I’ve come across one example of implementing [color=#808080][font=Menlo, Consolas,][color=green][size=2]Yii[/size][/color][color=gray][size=2]::[/size][/color][color=green][size=2]registerAutoloader [/size][/color][/font][/color]at this address http://www.yiiframework.com/extension/zendautoloader
But this tells that I should put in index.php, but what about console apps?
Isn’t there a global place where I should include my custom autoloader to be available for all web/console etc apps?
require_once 'Zend/Loader/Autoloader.php';
class ResourceLoader extends CApplicationComponent
{
public function init()
{
\Yii::registerAutoloader(array('Zend_Loader_Autoloader', 'autoload'));
}
}