Welcome Guest, Not a member yet? Register   Sign In
Abort execution and call _output() method
#3

[eluser]Hank the Punk[/eluser]
Thanks a lot !!!
Just what I was looking for. What a strange way to wipe all output data and abort execution !! jaja I think future versions should have this functionality.

As I was aborting execution outside the controller, I had to add a parameter to pass the current controller to my function:
Code:
public function function check_permission($controller)
{
  // code code code... crash!
  set_exception_handler(array($controller, '_exit_handler'));
  throw new Exception('bye bye');
}


Messages In This Thread
Abort execution and call _output() method - by El Forum - 10-01-2012, 08:04 AM
Abort execution and call _output() method - by El Forum - 10-01-2012, 03:13 PM
Abort execution and call _output() method - by El Forum - 10-01-2012, 03:49 PM
Abort execution and call _output() method - by El Forum - 10-01-2012, 03:58 PM
Abort execution and call _output() method - by El Forum - 10-01-2012, 04:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB