[eluser]chefnelone[/eluser]
I'm already trying with hooks using
post_controller_constructoras the Hook Point.
But I get this message:
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: GetData_Hooks::$db
Filename: hooks/getData_hooks.php
Line Number: 14
and line 14 is a simple query:
Code:
$query = $this->db->query("SELECT * FROM texts");
It seems, to me, that the
database library is not loaded at the time the hook is executed?
Should I use a differebt Hook Point than
post_controller_constructor?
Maybe using MY_Controller is a better idea, but I'd like to learn how to use hooks as well.