CActiveRecord单独作为library使用

Yii的CActiveRecord如何单独作为php的一个library使用呢?

类似ruby on rails的ActiveRecord gem一样,可以离开rails框架,单独作为一个ruby的library使用.

有个简单的一个例子就行,需要哪些必要的php文件等

:rolleyes: 貌似要抽出来挺麻烦的,所有的yii框架代码都依赖CCompent

只要改一下index.php,把->run()去掉就可以了。

thanks.but I find a other AR library

http://www.phpactiverecord.org/

it is using php5.3’s features that seems nice for me;D