In CakePHP 2.6, sometimes i want to end the current request in the beforeFilter() callback, and maybe issue a forbidden or not found result status.
In a controller action i know i can do this by returning the CakeResponseobject but i want to this in the callback. Is there a proper CakePHP way of doing so, to ensure all callbacks are called and the app is properly processed, or can i just send the headers and call die()?
Thanks in advance.