Dency G B
Dency G B

Reputation: 8146

Not Found (#404) Unable to resolve the request "gii/" in Yii2

I am using the alpha version of Yii 2.I can acess the GII module via frontend but not via backend. The url '/advanced/backend/web/index.php?r=gii/' gives me 404 error. Any fix for the issue?

Upvotes: 2

Views: 7095

Answers (2)

Nikita Leshchev
Nikita Leshchev

Reputation: 1844

Today I got same error. I deployed my yii2 project on local OpenServer, but this server was loaded with option "HTTP" = Nginx 1.9. As soon as I reload server with setted option "HTTP" = Apache2 + Nginx, gii loaded properly. I hope it will help somebody.

Upvotes: 0

Dency G B
Dency G B

Reputation: 8146

Found out. I need to add this to the backend config file manually.

'modules' => [
'gii' => 'yii\gii\Module',
 ],

Upvotes: 5

Related Questions