HI, i’ve been looking around and have not managed to find an answer to this one, im developing my first extension / module and need to take control of a process using one of the member hooks.
I can pick up on the hook fine and run my code etc but i need to tell the extension to stop running the code after the hook which i believe is done using the extension->end_script variable.
So my question is how do i correctly set this variable (for EE 2.1.x) in my extension, i’ve tried;
$this->ee->extensions->end_script = TRUE; ee()->extensions->end_script = TRUE; $EXT->end_script = TRUE;
and probably a couple of others… do i need to return this variable at the end of my function or have i just got the syntax wrong?
Cheers in advance,
Jon
Word.
Just wanted to weigh-in on this thread, as I ran into the same issue.
Couple things:
$this->EE =& get_instance();$this->EE->extensions->end_script = TRUEAny method that is executed that has it’s own hooks, will reset the property to FALSE. This is why it is not returning properly. I battled with this for an hour until I literally went line by to see how the whole thing was executed.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.