亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

There is an error on the page when logging in. How to solve it?
星河4p
星河4p 2017-08-16 09:08:58
0
4
1452

<?php
namespace app\index\controller;
use app\index\controller\Base;
class Index extends Base
{
public function index()
{
? ? ? ? ? $this->isLogin(); ? ? // Determine whether the user is logged in
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?.

星河4p
星河4p

嗯哼

reply all(3)
糊涂斌

$this->isLogin();

isLogin() This method is not in your class; you need to add a new isLogin();$this-> in the class to obtain the non-static properties of the current object For example:

class?Index?extends?Base
{
???public?function?index()
???{
???????$this->isLogin();???//判斷用戶是否登錄
???????return?$this->view->fetch();
???}
???public?isLogin(){
???????#code?判斷用戶是否登錄
???}
}


  • reply Wrong answer
    鳶尾花 author 2018-01-03 18:57:03
ringa_lee

Then there must be something wrong with this method, isLogin()

越努力,越幸運(yùn)

After adding the following sentence, the page is wrong

$this->isLogin(); //Determine whether the user is logged in

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