Welcome Guest, Not a member yet? Register   Sign In
Using variables as the controller name for routes
#5

(This post was last modified: 06-18-2021, 02:19 AM by ikesela.)

$1 should use as params only, call method from there ,



route >> /admin/something/(:any) , admincontroller :: something/$1

public function something(string $param)
{
... call method here based on param
}
Reply


Messages In This Thread
RE: Using variables as the controller name for routes - by ikesela - 06-18-2021, 02:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB