1
In the Codeigniter there is a configuration file called php router. where we set up the friendly urls. At the url of the site I’m doing I need to leave 2 dynamic parameters like this:
www.siteexemplo.com.br/parm1/parm2
I set up the file Routes as follows:
router['(:any)'] = "paginas/buscap1/(:any)";
router['(:any)/(:any)'] = "paginas/buscap2/(:any)/(:any)";
This means that when you have parameter 1 for example in the url the site will redirect to the controler paginas
in the method buscap1()
and in it I filter the parameter (:any)
.
The problem is that when the url has the second parameter, routing does not work and the system only redirects to the same method when it has only one parameter.
Has anyone ever needed to do anything like that to help me?
You are trying to pass two arguments in the method
buscap2
?– Rafael Simionato Hayashi