I have a question of this kind: There is a url like
http: // site-name / main / sub_menu? choice = catalog & section = 3 ,
where main is the controller, and sub_menu is the method with parameters. The question is how do I change routes to make the url look like:
http: // site-name / main / catalog / products ?
I tried this: $ route ['catalog / products'] = 'main / sub_menu? Choice = catalog & section = 3'; On the page with this address gives the error 404 not found.
I understand that it is necessary to transfer parameters for a gett differently in the routes. But how to do it right?
$route['main/catalog/(:any)'] = ...;- this? - Manitikyl