新来的求助,进来指点指点

浏览:349 发布日期:2015/06/27 分类:求助交流


我已经创建了front模块了,为什么不能访问里面的函数呢?通过http://127.0.0.1/index.php/front/index/index 。

请老大们告诉我为什么。

创建模块我是用的 define('BIND_MODULE','front');

创建了这个模块以后,我就禁用了这行代码,没有修改过模块里的函数。

以下是IndexController.class.php内的代码。<?php
namespace front\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $this->show('front page','utf-8');
    }
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>