/** * __construct - Include database object if defined */ public function __construct() { $this->db = Registry::get('db'); }
/** * __construct - Required */ public function __construct() { $this->segments = Registry::get('segments'); $this->view = Registry::get('view'); $this->model = Registry::get('model'); }