Closed JarkoeSoLnze closed 9 years ago
Hello I use gii for crud generator for "News" and I try to open backend/news/default/index or backend/news/default/index/
Not Found (#404) Unable to resolve the request "news/default/index".
Strucrure backend -controllers ---NewsController Models -News -NewsSearch Views -news --- index ---... ---update
I try to change config.php and put
'<_c>/<_a>' => '<_c>/<_a>', '<_m>/<_c>/<_a>' => '<_m>/<_c>/<_a>'
instead '<_m>/<_c>/<_a>' => '<_m>/<_c>/<_a>'
but it doesnt work
NewsController namespace backend\controllers;
Whats wrong? Please help
The problem is that you generate CRUD controller, but you try to access it like a module controller. The correct URL will be /backend/news/index/. Good luck!
CRUD
URL
/backend/news/index/
Hello I use gii for crud generator for "News" and I try to open backend/news/default/index or backend/news/default/index/
Not Found (#404) Unable to resolve the request "news/default/index".
Strucrure backend -controllers ---NewsController Models -News -NewsSearch Views -news --- index ---... ---update
I try to change config.php and put
'<_c>/<_a>' => '<_c>/<_a>', '<_m>/<_c>/<_a>' => '<_m>/<_c>/<_a>'
instead '<_m>/<_c>/<_a>' => '<_m>/<_c>/<_a>'
but it doesnt work
NewsController namespace backend\controllers;
Whats wrong? Please help