Welcome Guest, Not a member yet? Register   Sign In
Luthier-CI: Improved routing + middleware for CodeIgniter 3
#5
Photo 

I am trying to work with Luthier-CI and I must say that I really like the routing part. I have a question about the middleware part.

How do I pass variables to a route? I'd like to see something possible like:

Code:
Route::get('toystory/woody/{category_id}', 'moviesController@cast', [
       'middleware' => [
           'Input' => [
               'search'   => false,
               'userId'   => [],
               'language' => 'DE',
               'age'      => [
                   'sanitizer' => FILTER_SANITIZE_NUMBER_INT,
                   'default'   => 23
               ],
               'start'    => 0,
               'limit'    => 50
           ]
       ]
   ]);

But I don't want to have the arguments in the controller. So my question is, is this possible?

When I do it like above I get always the message: "Unable to find .php in your application/middleware folder".
Reply


Messages In This Thread
RE: Luthier-CI: Improved routing + middleware for CodeIgniter 3 - by jvandemerwe - 02-03-2019, 03:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB