yii-user usage, missing Controller class?


I’d like to start working with Yii-user extension (http://www.yiiframework.com/extension/yii-user/)

However when running controller, it throws an exception

include(Controller.php) [function.include]: failed to open stream: No such file or directory

well as I can see all the controllers inherit from Controller class, not CController.

Am I missing something or do I have to change it manually (or simple create Controller class inheriting from CController on my own?)?




using Yii 1.1.1

and yii-user checked out from svn today

If you generated a webapp using yiic, Controller.php should be in the protected/components/ directory. This is a base controller extended from CController generated by yiic. Yiic also creates a SiteController class in protected/controllers/ which is extended from Controller. You can add common code that you want to share among all of your controllers in Controller.php, then extend your other controllers from Controller.

thank you, I totally get idea of using custom “base” controller class, however I thought that yii-user depends on some custom one ;)

thanks again!