Changing ['language'] with ['lang'] in your case
On May 11, 7:48 am, Marco <[email protected]> wrote:
> On May 10, 10:25 am, Pixelastic <[email protected]> wrote:
>
> > I want to keep the :lang parameter in the url for SEO purposes. This
> > way each ressource of my app will have a different url and my pages
> > will be indexed in all the available languages (seems logical as their
> > content will be different).
>
> You don't need an extra parameter, I think you can use this code on
> app_helper.php:
>
> class AppHelper extends Helper {
>
> function url($url = null, $full = false) {
> if(!isset($url['language']) && isset($this->params
> ['language'])) {
> $url['language'] = $this->params['language'];
> }
>
> return parent::url($url, $full);
> }
>
> }
>
> Seehttp://teknoid.wordpress.com/2008/11/28/cakephp-url-based-language-sw...
>
> Marco
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---