soultaker
(Helder Henrique Cabral)
May 19, 2015, 11:24am
1
Hi, im creating my first project with yii 2.0, everything worked perfectly when i created the application, but after when i used the gii to create a model, controller and CRUD i cant access the generated files.
Im always getting an 404 Page not found error when i try to access them, can someone help me with this?
dstudio
(Nedim T)
May 19, 2015, 11:47am
2
Could you please provide some more details.
As I can see, from the photo, you are trying to open your User Controller.
soultaker
(Helder Henrique Cabral)
May 19, 2015, 11:57am
3
Yes im trying to perform index.php?r=user/index but I’m always getting that error, it happens to every controller I try to use.
I created an action on siteController and render the view user/index and it worked so i guess this is something about routing.
rupsk1607
(Webin2015)
May 19, 2015, 12:13pm
4
dstudio:
Could you please provide some more details.
As I can see, from the photo, you are trying to open your User Controller.
check in frontend/controllers, views, models
are they exist there? nd configure properly.?
soultaker
(Helder Henrique Cabral)
May 19, 2015, 12:19pm
5
Please see the link below with the code and the database
www.dropbox.com/sh/rzdjf3hfifov4i2/AADEGHTy2sVn55FXQFmoA4Z-a?dl=0
Thank you.
dstudio
(Nedim T)
May 19, 2015, 12:38pm
6
Replace your namespace from:
namespace backend\Controllers;
to:
namespace backend\controllers;
and it should work.
rupsk1607
(Webin2015)
May 19, 2015, 12:54pm
7
dstudio:
Replace your namespace from:
namespace backend\Controllers;
to:
namespace backend\controllers;
and it should work.
It is not the issue.
i have install your folder in mine localhost.
same issued faced then i update composer all work well.
u have to update composer.
dstudio
(Nedim T)
May 19, 2015, 2:56pm
8
It is not the issue.
i have install your folder in mine localhost.
same issued faced then i update composer all work well.
u have to update composer.
For me, the change above works perfectly.
soultaker
(Helder Henrique Cabral)
May 20, 2015, 9:38am
9
dstudio:
Replace your namespace from:
namespace backend\Controllers;
to:
namespace backend\controllers;
and it should work.
It works now, thank’s everyone