新手在执照yii教程来的时候,config/main.php文件是全新写的,post提交的时候,会出错
include(LoginForm.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
需要在config/main.php文件里设置,增加:
'import'=>array( 'application.models.*', 'application.components.*', ),