Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yii generates error "Unable to resolve the request <controller/action>"

Tags:

yii

After logged in successfully, Yii does not executing any page.

Showing an error:

Error 404 Unable to resolve the request "membersdet/index"

Here membersdet is controller Id and index is an action.

like image 305
Harpreet Singh Avatar asked Apr 11 '12 06:04

Harpreet Singh


3 Answers

Make sure the filename of your controller is EXACTLY "MembersdetController.php". It is case sensitive.

I guess you were developing on local machine under Windows OS and server runs on *nix system. That's normal issue for novice developers, that they forget about case sensitive file system in *nix.

like image 179
Johnatan Avatar answered Oct 31 '22 15:10

Johnatan


It is because of wrong controller file name given or may be actionIndex() method is not in your controller.

like image 26
radhika Avatar answered Oct 31 '22 15:10

radhika


I have had a similar problem and got it solved. In this case the file was correctly named but the class name was wrongly spelled. When these two do not correspond, you could get this error too.

like image 1
user3693845 Avatar answered Oct 31 '22 16:10

user3693845