I want to use the route parameters (which are typically stored in $params in the controller action methods) in the init() method. Since this is not an action method, it does not inherit those parameters. Is there still any way to obtain the route parameters?
//
Got it:
//
Got it:
PHP:
$this->router()->routeToController($this->request()->getRoutePath()))->getParams()
Last edited: