【求助】为什么assign不能用?

浏览:1086 发布日期:2016/03/29 分类:求助交流
public function manager () {
        // $path = SYS_ROOT_URL.'sql/';
        // $dirlist = scandir($path);
        // $file_arr = array();
        // foreach ($dirlist as $key => $value) {
        //     if ($value=='.' or $value=='..') continue;
        //     $file_arr[] = $this -> file_state ($path.$value);
        // }

        // $this -> assign('file_arr', $file_arr);
        // $this -> display();
        $path = '-------------------';
        $this->assign('path', $path);
        $this->display();
    }
assign传到模板的参数一直都是null,怎么弄?

附件 QQ截图20160329161021.png ( 9.23 KB 下载:7 次 )

最佳答案
评论( 相关
后面还有条评论,点击查看>>