문제

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

도움이 되었습니까?

해결책

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.

다른 팁

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
{
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top