Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
class Controller_Logout extends Controller
{
public function action_index()
{
//ログイン用のオブジェクト生成
$auth = Auth::instance();
$auth->logout();
Response::redirect('/');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment