08-19-2008, 03:50 PM
[eluser]wiredesignz[/eluser]
Hi darkhouse, Welcome to CI forums.
You could also use the MY_Controller extension to manage your alerts and then extend your own Controllers from this.
Hi darkhouse, Welcome to CI forums.
You could also use the MY_Controller extension to manage your alerts and then extend your own Controllers from this.
Code:
class MY_Controller extends Controller
{
public function __construct()
{
parent::__construct();
$this->load->library('alerts');
$this->load->vars($this->alerts->get_alerts()); // extracts alerts into view buffer
}
}
class Page_Controller extends MY_Controller
{
public function __construct() {}
}