public function before()
{
if(Auth::instance()->logged_in() == 0)
{
//redirect to main page
Request::instance()->redirect('index');
}
}
if ($this->user = Auth::instance()->get_user())
{
// redirect or smth else
} It looks like you're new here. If you want to get involved, click one of these buttons!