2012-07-02 15:38:50 +03:00
|
|
|
<?php defined('SYSPATH') or die('No direct script access.');
|
|
|
|
|
|
|
|
class Controller_Logout extends Controller {
|
|
|
|
public function action_view() {
|
2012-12-28 08:31:24 +02:00
|
|
|
if (Auth::instance()->logout()) return $this->redirect('login');
|
2012-07-02 15:38:50 +03:00
|
|
|
else $this->template->error = "Ошибка выхода пользователя.";
|
|
|
|
}
|
|
|
|
}
|