You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
391 B
23 lines
391 B
<?php
|
|
|
|
use Fuel\Core\Controller;
|
|
use Fuel\Core\Response;
|
|
use Fuel\Core\Session;
|
|
|
|
class Controller_Index extends Controller
|
|
{
|
|
public function before()
|
|
{
|
|
$user = Session::get('user');
|
|
|
|
if(!$user)
|
|
Response::redirect('/login');
|
|
else
|
|
Response::redirect('/home');
|
|
}
|
|
|
|
public function action_index()
|
|
{
|
|
// DO NOTHING
|
|
}
|
|
} |