Question

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...

Was it helpful?

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.

OTHER TIPS

This is actually due to a documented typo (Controller is missing the extra 'C') in the version of Gii that you are using.

All you have to do is update the controller file it generated from this:

class MyNewController extends Controller
{

to this:

class MyNewController extends CController
{
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top