<?php
namespace appindexcontroller;
use appindexcontrollerBase;
class Index extends Base
{
public function index()
{
$this->isLogin(); // 사용자가 로그인했는지 확인
return $ this-> ;view->fetch();
}
}
糊涂斌2017-08-30 11:25:53
$this->isLogin();
isLogin() 이 메소드는 클래스에 없습니다. 현재 개체 예:
class Index extends Base { public function index() { $this->isLogin(); //判断用户是否登录 return $this->view->fetch(); } public isLogin(){ #code 判断用户是否登录 } }