快捷导航

页面重复发现是继承父类的事但是不知道为什么

class ZidongController extends Controller{                 public function _initialize()        {                if(!session('?userinfo'))                {                        $this->error('请登陆',U('Admin/Login/login'),3);                }        }}class IndexController extends ZidongController{}这样继承没问题吧,为啥页面出来两个HTML

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员2

没问题。什么叫出现两个html?
回复

使用道具 举报

是不是你的跳转页面那里重复了
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP