Welcome Guest, Not a member yet? Register   Sign In
routing with lang parameter in url

I'm trying to build multi language website that holds [en|es] . everything seems work fine for me except for the routing. 

I move index.php from public folder to main folder and did the required modification. 

my route.php file 
$routes->get('{locale}/login', 'Login::index');
$routes->get('{locale}/login/method2/(:any)', 'Login::Method2/$1');

routing seems to work fine, but only with one parameter. 
* what if I want to add more parameters?
* what if I want to have auto routing and not to add each function in the routing file?

Theme © iAndrew 2016 - Forum software by © MyBB