Check the login status (why did I report an error immediately after writing this in Base.php? Where did I write it wrong? Can anyone help me look at it?)
ᴬ ᴾᵀ
ᴬ ᴾᵀ 2018-02-27 13:17:34
0
1
1246

protected function _initialize()
{
parent::initialize();
define('USER_ID',Session::get('user_id'));
}

protected function isLogin()
{
if (empty(USER_ID)){
$this -> error ('The user is not logged in and has no permission to access',url('user/login') ; Log in, please do not log in again',url('index/index'));

ᴬ ᴾᵀ
ᴬ ᴾᵀ

reply all(1)
Don't cry

Don’t give protected attributes to your magic functions, give them public

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template