• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Apply multiple filters to a single route

I am just getting back into PHP programing after a few years and started with CodeIgniter 4. It is the first framework I have used and I love it.  There is one feature that does seem to be missing though.  The ability to apply multiple filters to a single route would be amazing.  I understand that I can create a filter alias that includes multiple filter classes, but this is kind of falls apart if you need to pass different arguments to those individual filters in a single alias.  Also, creating multiple aliases for each filter combination can get tedious.

+1 to that. Another useful thing would be to be able to pass parameters from the URL to filters.

That way if we have an ID defined in some segment of the URL could pass it to a filter and use it there.

I am currently doing this getting the segment form the URL in the filter itself but thats not very good.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.