Hi Tamás
FYI adding this line to route.php
$Route->connect('/content/:lang/:controller/:action/*');
then in controller in $this->params['lang'] is value for :lang
for example:
http://www.mysite.com/content/sk/categories/view/3
in controller Categories in $this->params['lang'] is value 'sk'
http://www.mysite.com/content/hu/articles/view/3
in controller Articles in $this->params['lang'] is value 'hu'
But there is one thing i didn understood ;)
when I add to route.php (vithout prefix /content/ )
$Route->connect('/:lang/:controller/:action/*');
i got an error
fatal: Unable to load controller ViewController
:(
Ámon Tamás wrote:
> Hello,
>
> I try the nect things in the routes.php
> $Route->connect('/eng|hun/', array('controller' => 'categories',
> 'action' => 'index', '1'));
> $Route->connect('/eng|hun/:controller/:action/*', array('controller,
> action'));
>
> But when I try the following urls I get different content?
>
> for
> http://mediabazar/eng/ is good I get the front page.
> http://mediabazar/hun/ is good I get the front page.
> http://mediabazar/hun/classadds/lista/10 is good I get the list
> but
> http://mediabazar/eng/classadds/lista/10
>
> is wrong because I get the front page again. What is the wrong in my Routes?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---