Hi,
I haven't tried this yet but I think you need to build the link using code
something like
echo $this-Html-link('News', array(
'controller' = 'news',
'action' = 'index',
'lang' = 'esp'
));
Hope this helps.
Amit Badkas
PHP Applications for E-Biz: http://www.sanisoft.com
On Fri, Dec 31, 2010 at 2:50 AM, talisker ofranqu...@gmail.com wrote:
Hello again! :P
can someone explain me how to set the parameter 'persist' in
Router::Connect() function to achieve insert automatically the
language on the first level of url in every $html-link()? I searched
a lot and I didn't find a goog exlanation about this. I need url's
like this:
www.example.com/esp/news/...
www.example.com/cat/news/...
The explanation in api is as follows:
persist is used to define which route parameters should be
automatically included when generating new urls. You can override
peristent parameters by redifining them in a url or remove them by
setting the parameter to false. Ex. 'persist' = array('lang')
Thanks!
Check out the new CakePHP Questions site http://cakeqs.org and help others
with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en