cake-php
[Arriba] [Todas las Listas]

Re: Rutas y multilanguage sitio

To: cake-php@xxxxxxxxxxxxxxxx
Subject: Re: Rutas y multilanguage sitio
From: lowpass <zijn.digital@xxxxxxxxx>
Date: Sat, 1 Jun 2013 13:43:36 -0400
Delivery-date: Sat, 01 Jun 2013 13:43:45 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=BxVJsx+TCuOSMKkyEohQO59iFDIIkU/r7V/9OwDJ5qk=; b=QU0vGPP+CkMXmrtaDZnmbFWOs4gr9uqBvgGYTMZq7u0w/Z249RpRE7n66sMfAuJ8uY XtvRCaKw0I0AouuBFdzCCchyOgyD8FvE/Ci2bMmU5L7VbdlHRADx2E8I+A8BpxJxyoGs 6RyjtTcdGI2OJUStb3JvS7D9pgf7uMJsUDEBQVga+E5WRwBAeJEcbMegcX7JXG4fDxTZ vSrOScH1Gg74o46pFgyFmVGJpnL29D54FFiT8mq9sSdTcdUxcLmMgE4yS32+wFrPFvLR EogUzfxUwdNuoNplhoqB2TBgrQ6Cm8dkwFfc7/KA4FlSqwDhNZv4Yf4a/xQBSg+sOQTe c71g==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=BxVJsx+TCuOSMKkyEohQO59iFDIIkU/r7V/9OwDJ5qk=; b=tL10XhaFoODEvKhZ16Yp3hM7ET7uQokPz2FxFAEe1o8+XKNGXyhcNoJmfwR9c3ExRz a78eu8KsBOthgpDM0UwUaFdyBkq9/MNmkyMSjBTyXJR1C42YM2MoN7QcnervvfHBU1tA wJiaK+aTNCOYv1qRcUOiNqK/V0YtBb2tatpAwDC/hxSbpDC20lL13AoTPEJwItnsh0zq 8R4KP4Myf4zg60BviWwiP5UldkTTuNfJnOIBJnvckIcHgAwVQiXKgK1ZN5BDgYl8axr6 v28wr38lJyse5kd4LUWdFX6Z0E8kZHbX3VBG5gDMv2kK5u2EfkHMFrkHSmr1J42QfJo7 TWdA==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <e770141f-c372-40b2-9f43-62af6a22f112@googlegroups.com>
List-archive: <http://groups.google.com/group/cake-php?hl=en>
List-help: <http://groups.google.com/support/?hl=en>, <mailto:cake-php+help@googlegroups.com>
List-id: <cake-php.googlegroups.com>
List-post: <http://groups.google.com/group/cake-php/post?hl=en>, <mailto:cake-php@googlegroups.com>
List-subscribe: <http://groups.google.com/group/cake-php/subscribe?hl=en>, <mailto:cake-php+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/cake-php/subscribe?hl=en>, <mailto:googlegroups-manage+1003367825667+unsubscribe@googlegroups.com>
Mailing-list: list cake-php@xxxxxxxxxxxxxxxx; contact cake-php+owners@xxxxxxxxxxxxxxxx
References: <350e706d-5b8b-4eec-9774-bfde6e5b13a6@googlegroups.com> <911a1fc7-07c8-47c0-a86e-c978e1c4da79@googlegroups.com> <e770141f-c372-40b2-9f43-62af6a22f112@googlegroups.com>
Reply-to: cake-php@xxxxxxxxxxxxxxxx
Sender: cake-php@xxxxxxxxxxxxxxxx
Otro consejo.

*bootstrap:

Configura::escribe('*Config.Lenguas', variedad('*eng','*ned', '*deu'));

rutas:

$*lang_*regexp = *implode('|', Configura::leído('*Config.Lenguas'));

Ahora puedes utilizar el siguiendo sin teniendo que repetir vuestra lista de *langs:

'lengua' => $*lang_*regexp,


En *Thu, mayo 30, 2013 en 4:12 AM, *iFemke <femkevgemert@xxxxxxxxx> escribió:

> Aquello trabajó! *Thanks!
>
> Siento tan estúpido ahora *haha. Probamos tantas cosas y en el *maintime lo
>  todos han trabajado si justo habíamos puesto que parte abajo todo más.
>
> *Op *donderdag 30 *mei 2013 08:28:02 *UTC+2 *schreef *Bogdan *Soos *het *volgende:
>
>> *Hi allí,
>>
>> Prueba cambiar el orden, nada está siendo *routed después de vuestra primera regla, al menos
>> mover la primera regla al final, que tendría que ser vuestra última regla.
>>
>> Consideraciones,
>> *Bogdan.
>>
>>  --
> Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
> nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP
>
> ---
> Recibiste este mensaje porque eres *subscribed al *Google Grupos
> "*CakePHP" grupo.
> A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un
> *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
> A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
> Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php?*hl=*en.
> Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.
>
>
>

-- 
Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP

--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*CakePHP" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php?*hl=*en.
Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx.
> To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
> 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@xxxxxxxxxxxxxxxx.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


<Anterior por Tema] Tema Actual [Siguiente por Tema>
  • Re: Rutas y multilanguage sitio, lowpass <=