Welcome Guest, Not a member yet? Register   Sign In
Applying multiple filters on a single route definition
#5

(07-27-2020, 11:35 PM)korgoth Wrote:
(07-27-2020, 07:31 PM)mlurie Wrote: I found the answer in the documentation. Multiple filters can be assigned to a single alias: https://www.codeigniter.com/user_guide/i...l?#aliases.  Then that alias can be applied to a route which accomplishes the same thing as applying multiple filters to a single route.  I would suggest that this be added to the URI Routing section of the manual in addition to the Filters section where the documentation is currently located.

While that is true and working - its not the best solution when you want to pass some parameters to the filters. Also if you have more than a couple of filters you should write a different alias for each combination which is not convenient
 
I agree this is not the best solution.  I would much rather be able to apply multiple filters to a single route.  I'm going to put in a feature request here: https://forum.codeigniter.com/forum-29.html.  Maybe if you do the same, it will get noticed.
Reply


Messages In This Thread
RE: Applying multiple filters on a single route definition - by mlurie - 07-28-2020, 07:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB