public function __construct() { parent::__construct(); View::$theme = setting('theme'); View::$inheritFrom = APPPATH . '/views/default'; $this->db = Database::connection(); $this->getUser(); $this->title(setting('title')); }