Unable To Resolve The Request "site /login"

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

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

while reading the file you miss the single quote on line 60 and post your exact error stack here

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