[eluser]Dark$hadow[/eluser]
Hi all,
First of all, sorry for my english, I'm french...
I use hooks at 'post_controller_constructor' level to control user is logged in before do any action and I would like to be able to stop the workflow immediately if user isn't logged.
I know it's possible to do a redirection but it's not what I want (because of ajax requests).
Here is my code (last instruction doesn't work):
Code:
if ($this->CI->input->post('method') == 'ajax') {
$this->CI->output->set_header("HTTP/1.1 403 Forbidden");
$this->CI->output->_display(); <--- STOP THERE AND RENDER
}
I simply search a way to say "stop there and render immediately without passing in the called controller".
Many thanks by advice for your answers.
Dark.