Steps how to implement multiple language in Cake PHP Step 1: Set the route configuration in app/Config/routes.php // i.e like www.google.com/language/controller/action Router::connect('/:language/:controller/:action/*',array(),array('language' => '[a-z]{3}')); Step 2: Set the config language in app/Config/core.php Configure::write('Config.language', 'eng'); Step 3: create Helper in app/View/Helper/NewHtmlHelper.php App::uses('HtmlHelper', 'View/Helper'); class NewHtmlHelper extends HtmlHelper { public function url($url = null, $full = false) { ...
Coding Cheatsheets - Learn web development code and tutorials for Software developers which will helps you in project. Get help on JavaScript, PHP, XML, and more.