I'm using CodeIgniter hook, which I've defined like below:
$hook['post_controller'][] =
array(
'class' => 'notify',
'function' => 'sendEmail',
'filename' => 'notify.php',
'filepath' => 'controllers'
);
And it's getting called whenever user browse a url. After each method got executed it's trigger the above hook. This is working fine the way I want.
Let's say I'm browsing something like: https://localhost/dashboard/index
which will run dashboard
controller index
method and then trigger my hook.
Now the problem is I'm calling another method list
of dashboard class from index
method. So when index method called list
method and it's got executed I want to trigger the hook as well, which is not happening right now.
Anyone help me on this!