include操作不能使用方法里的变量

浏览:830 发布日期:2013/11/06 分类:求助交流
send.html是一个发送页面,里面include了一个操作方法

send.html<include file="Index:head"/>IndexAction.class.phppublic function head()
    {
        $KindData=R('Kind/getTree',array(0));
        $this->assign('KindData',$KindData);
        $isLogin=1;
        $this->assign("isLogin",$isLogin);
        $this->display();
        }
结果就是访问send方法,能显示head.html这个模板,但是里面获取不到isLogin这个变量

应该怎么解决?
最佳答案
评论( 相关
后面还有条评论,点击查看>>