ajaxian
(Dorioajax)
February 14, 2012, 3:20pm
1
Hi all,
I made One Module in my Yii application.
In this Module there are several controllers: Default, Access, User, and one called perso
In my local pc i can access all those controllers and theirs different methods
But in Production I only can access Access (login, logout) and Default.
But when I try to access perso, or perso/specific_function, then I get a 404 Error
I’m searching for a while and I don’k know why.
Did you face to the same problem ?
Thanks
bettor
(Live Webscore)
February 14, 2012, 4:26pm
2
what is the difference between your test and production environment? are they different applications hosted in different folders? It depends on your structure you might have not uploaded everything to your production instance.
softark
(Softark)
February 14, 2012, 4:30pm
3
Could be a letter casing problem …
ajaxian
(Dorioajax)
February 14, 2012, 5:26pm
4
thanks for your reply,
let’s admit my module is Admin. I have a perso controller, default controller (access possible), access controller (access possible)
http://mywebsite.com/Admin/perso => 404
http://mywebsite.com/Admin => display the content of DefaultController::index
Then I don’t think about letter casing.
And concerning different directory path, It seems not, otherwise I couldn’t address http://mywebsite.com/Admin
softark
(Softark)
February 15, 2012, 1:49am
5
Check the name of "perso" controller class and the file name for it. "PersoController" in "persoController.php" may not work in unix.
ajaxian
(Dorioajax)
February 15, 2012, 9:43am
6
Thanks softark,
but DefaultController has a name DefaultController.php
I really don’t understand, from where this comes from.
ajaxian
(Dorioajax)
February 15, 2012, 10:43am
7
OK, I found…
My controller name was ProfilUserController and the associated php file was ProfilUserController.php
I change to ProfiluserController.php and all things seem correct …
Is it a Yii Bug ?