Welcome Guest, Not a member yet? Register   Sign In
Problem with routers, several parameters
#1

Hello!

I dont understand how I can pass several parameters to index function in routes, for example, I want to do this:
$routes->add('en/specials/{:any}', 'Products::index/en/specials/$1');
$routes->add('fr/specials/{:any}', 'Products::index/fr/specials/$1');

But its dont work, redirect to 404 error page.

This is work fine:
$routes->add('specials/{:any}', 'Goods::index/specials/$1');

But I need language parameter in address string. Tell me please what am I doing wrong.
Reply


Messages In This Thread
Problem with routers, several parameters - by NespiCMS - 11-13-2018, 07:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB