图集1/2

正文 526字数 524,530阅读

修改文件路径
\Addons\DingDan\Controller
Run code
Cut to clipboard

    添加如下代码
    var $model; function _initialize() { $this->model = $this->getModel ( 'dingdan' ); parent::_initialize (); } // 通用插件的列表模型 public function lists() { $map ['token'] = get_token (); $list_data = $this->_get_model_list ( $this->model ); $this->assign ( $list_data ); $templateFile = $this->model ['template_list'] ? $this->model ['template_list'] : ''; $this->display ( $templateFile ); }
    Run code
    Cut to clipboard