public function __construct() { parent::__construct(); View::$theme = setting('theme'); View::$inheritFrom = APPPATH . '/views/default'; $this->db = Database::connection(); $this->getUser(); $this->title(setting('title')); }
/** * Private function to return the database connection. * * @return object */ private function connection() { return Database::connection($this->connectionName); }
/** * Returns the connection for the model. * * @return object * @access protected */ protected static function connection() { return Database::connection(static::$_connectionName); }