Welcome Guest, Not a member yet? Register   Sign In
Get controller's method variables in Filter's before method
#2

(This post was last modified: 07-30-2020, 06:45 AM by yassine.)

Actually, nevermind, I just found out how to get the params! Smile

For anyone interested, I called the router service, in which there is the params() method.

Like so:

PHP Code:
        $router Services::router();
        echo var_dump($router->params());
        
// array(1) { [0]=> string(1) "1" } 
Reply


Messages In This Thread
RE: Get controller's method variables in Filter's before method - by yassine - 07-30-2020, 06:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB