lulupearls
(Lulupearls)
January 30, 2014, 1:35pm
1
Hello,
I am learning the Yii framework using Larry Ullman’s tutorial.After creating the webapp, I was able to login to index.php using admin/admin.
But after creating models,views and controllers using gii and try login to my webapp, I get the following error:
Error 404
Unable to resolve the request "site /login".
when I also try and access a table through the browser …localhost/testdrive/index.php/mytable
and click on operations, manage mytable, I get the following error:
Error 404
Unable to resolve the request "mytable/admin".
Can someone point me to what I need to change?
thanks alot
ahmed201
(Rifajas)
January 30, 2014, 3:50pm
2
lulupearls:
Hello,
I am learning the Yii framework using Larry Ullman’s tutorial.After creating the webapp, I was able to login to index.php using admin/admin.
But after creating models,views and controllers using gii and try login to my webapp, I get the following error:
Error 404
Unable to resolve the request "site /login".
when I also try and access a table through the browser …localhost/testdrive/index.php/mytable
and click on operations, manage mytable, I get the following error:
Error 404
Unable to resolve the request "mytable/admin".
Can someone point me to what I need to change?
thanks alot
hello lulupearls did you enable the url format to use path? if not defined in config this is the problem because you did not specified to use path format for the url rules so try this
http://www.my.site/index.php?r=site/login
lulupearls
(Lulupearls)
January 31, 2014, 6:23am
3
Thanks Ahmed,
I have tried as you have suggested above and I still get the same error.Attached is the config file, do you mind highlighting on the line I need to change? thanks
ahmed201
(Rifajas)
January 31, 2014, 6:40am
4
while reading the file you miss the single quote on line 60 and post your exact error stack here
ahmed201
(Rifajas)
January 31, 2014, 8:21am
6
lulupearls:
Thanks, its as attached.
hello lulupearls don’t attach the file instead post you controller action / view that makes the problem using code button (<>) so that only we can analyze the cause of error