Welcome Guest, Not a member yet? Register   Sign In
Controller Filters - Input needed
#9

(07-07-2016, 10:55 PM)orionstar Wrote: @kilishan You mentioned that there will be an event system... A default beforeController/afterController events are not enough? The controller and actions name can be passed by arguments. After that the user can do whatever wants with the data.

It's entirely possible, but currently there's no simple way to specify which endpoints the event would affect. It would leave each event doing a bunch of checks, which would get gnarly quick. Additionally, there's no way to stop the controller action from an event, which is a big part of why you'd want to run before filters, anyway. I'm not 100% that returning a redirect from a hook would do anything at this point, without trying it, though I believe it would. So, events come close, but not 100%.
Reply


Messages In This Thread
Controller Filters - Input needed - by kilishan - 07-07-2016, 08:39 PM
RE: Controller Filters - Input needed - by arma7x - 07-10-2016, 06:46 AM
RE: Controller Filters - Input needed - by arma7x - 07-07-2016, 09:14 PM
RE: Controller Filters - Input needed - by kilishan - 07-08-2016, 06:24 AM
RE: Controller Filters - Input needed - by arma7x - 07-10-2016, 11:42 PM
RE: Controller Filters - Input needed - by arma7x - 07-12-2016, 01:55 AM
RE: Controller Filters - Input needed - by arma7x - 07-13-2016, 12:23 AM
RE: Controller Filters - Input needed - by arma7x - 07-14-2016, 12:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB