/** * Constructor * * @params array Controller configuration array */ function __construct($config = array()) { parent::__construct($config); $pathViews = JPATH_ADMINISTRATOR . DS . "components" . DS . "com_noixacl" . DS . "views"; $this->addViewPath($pathViews); JRequest::setVar('view', 'users'); }
/** * Constructor * * @param Request $request * @return UsersCalendarController */ function __construct($request) { parent::__construct($request); if (!can_access_profile_calendar($this->logged_user, $this->active_user)) { $this->httpError(HTTP_ERR_FORBIDDEN); } // if if ($this->active_user->isNew()) { $this->httpError(HTTP_ERR_NOT_FOUND); } // if $this->wireframe->addBreadCrumb(lang('Calendar'), Calendar::getProfileCalendarUrl($this->active_user)); }
public function __construct($request = null, $response = null) { parent::__construct($request, $response); $this->User = ClassRegistry::init('AppUser'); }
function __construct() { parent::__construct(); }