/** * 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 base Controller class and view */ public function __construct() { // construct Controller parent::__construct(); // Parse default data about app $this->data['App'] = $this->App; }
public function __construct() { parent::__construct(); //$this->data['App'] = $this->App; $this->data['Site'] = $this->App->get('config')->site; $this->data['Theme'] = $this->App->get('theme')->Locale->{APPLOCALE}; $this->data['Template Files'] = $this->App->get('theme')->{'Template Files'}; $this->data['Custom Files'] = $this->App->get('theme')->{'Custom Files'}; }
/** * 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'; }
public function __construct() { parent::__construct(); // construct controller // //// setup admin // $this->bootstrap(); // //// check login // $this->checkLogin(); // //// check permissions //// $this->checkRole('broker'); // // $this->setupAdminMenus(); }
public function __construct() { // we instantiate our parent controller class parent::__construct(); }
public function __construct() { parent::__construct(); }
/** * Construct this object by extending the base Controller class and view */ public function __construct() { // construct Controller parent::__construct(); // Parse default data about app }
/** * Construct this object by extending the base Controller class and view */ public function __construct() { // construct Controller parent::__construct(); }