Ismael
(Shalanga)
June 15, 2009, 2:34pm
1
Hi,
I have tried to active the url friendly option with success.
Now my module called 'admin' does not work anymore.
/index.php?r=admin/depoimento
Is there a way to disable url friendly per module? I don't even know if it makes sense this question.
Or now do i have to create rules for routes including the admin module so it can be parsed?
Ismael, o esquema de url friendly dispensa o uso do
?r=
sua URL deveria ser agora tipo localhost/seusite/depoimento/admin
o controlador depois a ação, por exemplo, a ação admin do controlador testemunha:
localhost/seusite/testemunha/admin
a ação list
localhost/seusite/testemunha/list
assim por diante…
cheers!!
Ismael
(Shalanga)
June 15, 2009, 4:00pm
3
Cara, eu vou ter que falar inglês agora senão o bixo pega!
The problem occured was the attribute of 'urlManager' showScriptName => false
If it is true, nothing is recognized. But the url are correcly generated.
See this:
Module admin with showScriptName = true
/site/index.php/admin/sessao
ok
Module admin with showScriptName = false
/site/admin/sessao
Error not found
I cannot understand why.
rickgrana
(Ricardo Grana)
June 15, 2009, 6:53pm
4
See in the guide about 'hidding index.php'.
Just setting showScriptName to false will not make it work
Ismael
(Shalanga)
June 15, 2009, 8:46pm
5
Thank you.
I really forgot to do this step. My bad not looking this… i thought it was already done, but was in another site.
I’ve just created a file “.htaccess” in the main directory with respective apache configuration listed in the guide. And now Works perfecly as expected!!!