Saturday, June 1, 2013

Re: Routes and multilanguage site

Another tip.

bootstrap:

Configure::write('Config.languages', array('eng','ned', 'deu'));

routes:

$lang_regexp = implode('|', Configure::read('Config.languages'));

Now you can use the following without having to repeat your list of langs:

'language' => $lang_regexp,


On Thu, May 30, 2013 at 4:12 AM, iFemke <femkevgemert@gmail.com> wrote:
That worked! Thanks! 

I feel so stupid now haha. We tried so many things and in the maintime it would all have worked if we had just put that part below everything else.

Op donderdag 30 mei 2013 08:28:02 UTC+2 schreef Bogdan Soos het volgende:
Hi there,

Try changing the order, nothing is being routed after your first rule, at least move the first rule at the end, that should be your last rule.

Regards,
Bogdan.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: