/** * Execute the action */ public function execute() { parent::execute(); BackendAuthentication::logout(); // redirect to login-screen $this->redirect(BackendModel::createUrlForAction('index', $this->getModule())); }
/** * Execute the action * * @return void */ public function execute() { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // log out the current user BackendAuthentication::logout(); // redirect to login-screen $this->redirect(BackendModel::createUrlForAction('index', $this->getModule())); }