Welcome Guest, Not a member yet? Register   Sign In
"post controller" Hook Problem
#4

[eluser]wiredesignz[/eluser]
Don't even try to call the controller in a post controller hook.

$CI is a global variable that is used to hold the controller object and is available until the CodeIgniter script finishes.

You should perhaps define a custom class or function in the hooks directory and by using global $CI you will then get access to your test method.
Code:
global $CI;
$CI->test();


Messages In This Thread
"post controller" Hook Problem - by El Forum - 05-31-2009, 05:28 AM
"post controller" Hook Problem - by El Forum - 05-31-2009, 06:11 AM
"post controller" Hook Problem - by El Forum - 06-14-2009, 04:32 PM
"post controller" Hook Problem - by El Forum - 06-14-2009, 04:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB