public function index() { if (Acl::isLogin()) { return Redirect::action('dashboard'); } return Redirect::action('login'); }
/** * 退出 * @return Response */ public function logout() { Acl::logout(); return Redirect::action('system/login'); }