StudentLogin.php 572 字节
<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class StudentLogin extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = 'default';

    public function index()
    {
        $this->view->assign('login',$login='foot');//首页隐藏头部使用
		return $this->view->fetch();
    }
    public function getLoginStatus(){
        if($this->auth->isLogin()){
            $this->success();
        }else{
            $this->error("请登录",url('student_login/index'));
        }
    }
}