Where did I go wrong? Please help me. Thank you.
木槿
木槿 2017-11-29 22:44:14
0
2
1247


protected function _initialize(){

parent::_initialize(); //Modify here

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 access rights',url('user/login'));

}

}

protected function alreadyLogin()

{

if(empty(USER_ID)){

$this->error('The user has already logged in, please do not log in again', url('index/index'));

}

}

index.html:1 Error in event handler for (unknown): TypeError: Cannot read property ' parentNode' of undefined this error message appears, thank you for your help

木槿
木槿

reply all(1)
必有失必有得

empty is replaced with defined

  • reply This is to determine whether the existence exists. In fact, we have to deal with this logic.
    必有失必有得 author 2017-12-21 21:16:56
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template