Hooks on controller methods |
Well I do get your suggestion however my problem is about repeating 'exist' on every function that 'exist' is required.
In other frameworks there is the concept of middleware where you can intercept the request and validate it before you pass it to the controller function. I don't think CI 3 provides this kind of functionality out of the box. Maybe there is some possible way to emulate it without huge changes. |
Messages In This Thread |
Hooks on controller methods - by milengardev1994 - 10-11-2019, 02:06 PM
RE: Hooks on controller methods - by InsiteFX - 10-12-2019, 04:10 AM
RE: Hooks on controller methods - by milengardev1994 - 10-12-2019, 06:01 AM
RE: Hooks on controller methods - by InsiteFX - 10-12-2019, 11:33 AM
RE: Hooks on controller methods - by dave friend - 10-12-2019, 01:27 PM
RE: Hooks on controller methods - by milengardev1994 - 10-12-2019, 03:56 PM
|