/** * Construct this object by extending the base Controller class */ public function __construct() { parent::__construct(); // get project url $this->data['project_url'] = Router::getProjectUrl(); $this->data['current_url'] = Router::getUrl(); }
/** * Construct this object by extending the basic Controller class */ public function __construct() { parent::__construct(); // set urls $this->data['project_url'] = Router::getProjectUrl(); $this->data['current_url'] = Router::getUrl(); $this->header = PATH_APP_VIEWS . 'auth/assets/inc/_header'; $this->content = PATH_APP_VIEWS . 'auth/'; $this->footer = PATH_APP_VIEWS . 'auth/assets/inc/_footer'; }