Hi, qiang.
Thanks for your great work.
I use my own libraries with spl_autoload_register() outside yii directory.
index.php:
<?php $yii='/yii-1.0.4/framework/yii.php'; $config=dirname(__FILE__).'/protected/config/main.php'; // remove the following line when in production mode defined('YII_DEBUG') or define('YII_DEBUG',true); //Here's my class. //including before YiiBase. require_once('/yii-ext/CG_Autoload.php'); spl_autoload_register(array('CG_Autoload', 'autoload')); require_once($yii); Yii::createWebApplication($config)->run();
My web application works well, but yiic doesn't work.
Here's warning message from yiic.
YiiBase::include(CG_CHtml.php): failed to open stream: No such file or directory
Do you have any suggestions to avoid this?
Thanks again.