+ -
当前位置:首页 → 问答吧 → 为什么会出现“无法加载模块”错误?thinkphp

为什么会出现“无法加载模块”错误?thinkphp

时间:2011-05-24

来源:互联网

public function index()
    {
       $content =M('content'); // 实例化模型类

       $list = $content->select(); // 查询数据

      $this->assign('list',$list); // 模板变量赋值
//      //     echo '<pre>';
//      dump($list);
//      //    echo '</pre>';
      $this->display(); // 输出模板


    }
   public function insert()
   {
       $Demo =M('content');   // 实例化模型类

       $Demo->Create(); // 创建数据对象
       $result = $Demo->add(); // 写入数据库
       $this-> redirect("index");
//       $this->assign('waitSecond','20');
//       $this->assign('jumpUrl','index'); // 成功后重定向到index操作页面
//       $this->success();
    }

作者: a22a22988   发布时间: 2011-05-24

无法加载模块就是目录不对,貌似

作者: 葛滔   发布时间: 2011-05-24