Welcome Guest, Not a member yet? Register   Sign In
Routes using param to chose which Controllers to use.
#1

Hello, 
I have the same method name for a group of controllers:


PHP Code:
public function get_html(){



Intead of writing the complete route for every controller, is there a way to use params in routes to call different Controllers with the same method?

Something like this:

PHP Code:
$routes->get('(:any)/get_html''$1::get_html'); 
Reply


Messages In This Thread
Routes using param to chose which Controllers to use. - by Jag81 - 10-25-2022, 02:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB