Generating CRUD Code through Yii giving error
-
14-04-2021 - |
문제
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
{
제휴하지 않습니다 StackOverflow