Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
class Controller_Welcome extends Controller
{
public function before()
{
//未ログインの場合、ログインページへリダイレクト
if(!Auth::check()){
Response::redirect('/login');
}
}
public function action_index()
{
return View::forge('welcome/index');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment