Controller Filters - Input needed |
Just for reference for people who may be unfamiliar with Rails or PHP Middleware:
Rails / My guess of what CI4 would look like with Rails like filters Code: namespace App\Controllers; The filters/middleware I'm talking about has been in various other frameworks and talked about ad nauseum in blogs. Here are some links What is middleware? https://philsturgeon.uk/php/2016/05/31/w...iddleware/ https://www.sitepoint.com/stackphp-explained/ http://stackphp.com/ Different PHP implementations of filters/middleware: http://www.slimframework.com/docs/concep...eware.html http://flightphp.com/learn#filtering https://laravel.com/docs/5.2/middleware
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
|
Welcome Guest, Not a member yet? Register Sign In |