Search code examples
yiiyii-components

Generating CRUD Code through Yii giving error


i have completely done all the task that is Model generator Crud generator after that when there come try the link i click that link it gives the following error

 YiiBase::include(Controller.php) [<a href='function.YiiBase-include'>function.YiiBase-include</a>]: failed to open stream: No such file or directory

i check my model and views folder and it successfully created all the required php pages. can anyone tell me why this error is comming...


Solution

  • You need to have a custom Controller class placed in the /protected/controller folder. Extend that class from CController.

    class Controller extends CController {
    
    }
    

    you will use later as a base class for your own controller classes.