Answer the question
In order to leave comments, you need to log in
Why can't the Yii Controller find the _grid view?
Good afternoon, I got this error:
2015/07/24 09:04:52 [error] [exception.CException] exception 'CException' with message 'The ConfigUserController controller cannot find the view "_grid".' in S:\DEVELOPER\openserver\OpenServer\domains\drive\framework\web\CController.php:878
Stack trace:
#0 S:\DEVELOPER\openserver\OpenServer\domains\drive\protected\modules\crud\components\actions \list\DAdminAction.php(37): CController->renderPartial('_grid', Array)
#1 S:\DEVELOPER\openserver\OpenServer\domains\drive\framework\web\actions\CAction.php(76): DAdminAction ->run()
#2 S:\DEVELOPER\openserver\OpenServer\domains\drive\framework\web\CController.php(308): CAction->runWithParams(Array)
#3 S:\DEVELOPER\openserver\OpenServer\domains\drive\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(DAdminAction))
#4 S:\DEVELOPER\openserver\OpenServer\domains \drive\framework\web\filters\CFilter.php(40): CFilterChain->run()
#5 S:\DEVELOPER\openserver\OpenServer\domains\drive\framework\web\CController.php(1145): CFilter- >filter(Object(CFilterChain))
#6 S:\DEVELOPER\openserver\OpenServer\domains\drive\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#7 S: \DEVELOPER\openserver\OpenServer\domains\drive\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#8 S:\DEVELOPER\openserver\OpenServer\domains\drive\framework \web\CController.php(291): CFilterChain->run()
#9 S:\DEVELOPER\openserver\OpenServer\domains\drive\framework\web\CController.php(265): CController->runActionWithFilters(Object(DAdminAction), Array)
#10 S:\DEVELOPER\openserver\OpenServer\domains \drive\framework\web\CWebApplication.php(282): CController->run('index')
#11 S:\DEVELOPER\openserver\OpenServer\domains\drive\framework\web\CWebApplication.php(141): CWebApplication ->runController('sadmin/configUs...')
#12 S:\DEVELOPER\openserver\OpenServer\domains\drive\framework\base\CApplication.php(180): CWebApplication->processRequest()
#13 S:\ DEVELOPER\openserver\OpenServer\domains\drive\index.php(23): CApplication->run()
#14 {main}
REQUEST_URI=/sadmin/configUser/index?ajax=category-cars-grid
HTTP_REFERER=drive/sadmin/configUser/index
---
ConfigUserController uses external actions, where should this grid be connected if it is not specified anywhere in action admin ?
Answer the question
In order to leave comments, you need to log in
It turned out that it meant a view in the _grid.php file, which I didn't have. Rescued standard Yii tools.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question