Are you using Cake's PageController, or have you implemented your own?
Have a look at how that does it.


On Sun, Mar 25, 2012 at 12:02 PM, Ivo Wolgensinger
<[email protected]> wrote:
> Dear all
>
> I'm doing my website multilingual. Now I'm working on the pages handling.
> Most of them works fine.
> If somebody calls www.mydomain/pages/about_us (or
> www.mydomain/ita/pages/about_us) then I want (in the AppController) to read
> the name of "about_us". In this case it's about_us.ctp in the pages folder.
> I want to create a switch and have to ask which page it is. Then I can check
> if the file exists in the exact folder (ex. pages/ita/about_us.ctp)
>
> How can I get the filename? I tried to do this: $this->action, but the
> action is "display", so I need another solution.
>
> Any ideas?
>
> Thank you very much.
>
> Ivo
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to