摘要:
两个表的model继承自CActiveRecordclass User extends CActiveRecordclass Post extends CActiveRecord很明显,User和Post是一对多的关系在两个Model中覆盖relations方法//class Postpubli... 阅读全文
摘要:
1. 运行yiic命令提示,php.exe不是内部或者外部命令。 这是因为yiic程序没有找到php.exe程序。 1) 把php.exe文件夹路径添加到环境变量中 2)把php.exe文件路径添加到yiic.bat中2. 运行yiic时,提示can not open the input f... 阅读全文