Jacfil
(Julie Pierre78)
1
Hi,
Let say i have a controller mycontroller. Is it possible for it to be accessible only with an alias, for example mycontrolleralias ?
So i want :
I want to hide true controller name from outside.
Thanks.
mentel
(Yii)
2
Yes, use URL rules.
See CUrlManager and the guide.
zaccaria
(Matteo Falsitta)
3
Does CurlManager give 404 error for an alternative, but valid, url?
Jacfil
(Julie Pierre78)
4
CUrlManager allow me to set an "alias", but how can i fake a non-existing controller ?
tri
(tri - Tommy Riboe)
5
This approach may be usable also in your case.
/Tommy
mentel
(Yii)
6
Quick poor solution: assign the URL to an action that just throws a CHttpException, passing code 404.
mentel
(Yii)
8
Please don’t forget to vote for the people who helped you 