[eluser]prestondocks[/eluser]
Hi, I have defined a hook file for which I want to access and a data member in the class being called.
The code in my hook file looks like this
Code:
class Security
{
function module_permission()
{
$CI =& get_instance();
$class = $CI->router->class;
$method = $CI->router->method;
echo $CI->$class->sec_test;
}
}
But I am getting the following error
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI::$meetings
Filename: hooks/security.php
Line Number: 11
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: hooks/security.php
Line Number: 11
I am using the post_controller_constructer hook
I am also using HMVC
Can anyone help me to solve this issue?
Thanks for any help,