摘要:
Add this line to /config/main.php (or whatever config file you are using)'import'=>array( 'application.models.*', 'application.controllers.*', <-- add this line 'application.components.*',...example I used in siteController public function hello() { return ' 阅读全文