Routes with 2 variables CI3 |
Hello. I need something like this:
$route['controller1/function'] = 'controller2/funtion/var1=thing/var2=otherthing'; But it doesn't work. $route['controller1/function'] = 'controller2/funtion/thing/otherthing'; Doesn't work. The thing is: I want to modify de values of privates attributes inside the controller so it works in several ways based on the URL.
Try something like that:
PHP Code: $route['controller1/function'/(:any)/(:any)] = 'controller2/funtion/$1/$2'; See https://codeigniter.com/userguide3/general/routing.html
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Welcome Guest, Not a member yet? Register Sign In |