Welcome Guest, Not a member yet? Register   Sign In
routes with namespace & filter not work proper
#5

(This post was last modified: 07-08-2021, 12:22 AM by [email protected].)

(07-07-2021, 12:11 AM)salain Wrote: Not 100% sure, but as far as I understand the documentation your filter and namespace options should be an array

PHP Code:
$routes->get("dashboard""DashboardController::index", ["namespace" => "\Modules\dashboard\Controllers\Admin","filter" => "auth"]); 

Now, It's working. 
Thank You

(07-07-2021, 01:59 AM)InsiteFX Wrote: The last parameter to the routes is an $options array this is an associated array to hold all options to the route,
like namespace and filter

[namespace => name, filter => your_filter]

Now, It's working. 
Thank You 
Reply


Messages In This Thread
RE: routes with namespace & filter not work proper - by [email protected] - 07-08-2021, 12:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB