• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add filters to routing.

#1
Currently, Filters only support for a group of routes.
How to add filters to one URI.
https://bcit-ci.github.io/CodeIgniter4/i...uting.html

Thanks
Reply

#2
do you mean something like this :

$routes->add('feed', function()
{
$rss = new RSSFeeder();
return $rss->feed('general');
});
Reply

#3
No.
It not work to:

$routes->add('users/profile', 'Users::profile', ['as' => 'profile', 'filter' => '123]);
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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