Thursday, September 10, 2009

CakePHP URL-based language switching (internationalization and localization)

Write this below code in (app/config/routes.php) file.

Router::connect('/:language/:controller/:action/*',
array(),
array('language' => '[a-z]{3}'));

1 comment:

  1. Thanks for posting this job information. I will ask my team mates if they would want to be part of you team too. We are a group of freelancers and we are working on a lot of projects now. I hope to work with you in the future as well.

    Php Programmer London

    ReplyDelete