Am Mittwoch, 23. Mai 2012 11:59:27 UTC+2 schrieb heohni:
--Hi,I have a project in 5 languages.Until now I had such links to change the language: echo $this->Html->link(__('English'), array('controller' => 'lng/eng'), array('class' => $active2));It was working perfect, when I was on a sub page and changed language, I kept being on the same page, just the language file changed.Now, I had to change it in the way that I have to link to a own domain, likeecho $this->Html->link(__('English'), 'http://www.domain.com/lng/eng', array('class' => $active2));This works great for the homepage.But when I am on a sub page and changing language, I get always redirected to the homepage.What I want is to stay on the same page, just exchanging the domain name and to replace the /lng/xxx language file.What can I do?Can the router help?
Or do I have to deal with the htaccess?Please help me!!!I am totally lost here...Thanks!!!
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
No comments:
Post a Comment