function __construct() { parent::__construct(); if (!$this->user_model->isUserAuth()) { show_error('This is for authorise users.'); redirect('/', 'refresh'); } }
function __construct() { parent::__construct(); if (!$this->author_model->isUserAuthorize()) { show_error('Страница не доступна для не авторизированого автора.'); redirect('/', 'refresh'); } }
public function __construct() { parent::__construct(); $this->uploader = $this->get('core.file.upload'); $this->uploader->setUser($this->c_user); }
public function __construct() { parent::__construct(); }