11-13-2018, 07:08 AM
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.
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.