read filename of current view file in pages
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home