Controller_Shindig_Admin::action_logout PHP Method

action_logout() public method

public action_logout ( )
    public function action_logout()
    {
        $this->template->title = 'logout';
        $this->template->content = View::factory('shindig/admin/logout');
        if (isset($_POST['logout'])) {
            // Delete the user cookie
            Cookie::delete('authorized');
            // Redirect to the home page
            $this->request->redirect('');
        }
    }