vova07 / yii2-start

Yii2-Start application
Other
273 stars 115 forks source link

Gii CRUD #93

Closed JarkoeSoLnze closed 9 years ago

JarkoeSoLnze commented 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

vova07 commented 9 years ago

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!