学习thinkphp问题汇总

浏览:754 发布日期:2016/10/14 分类:求助交流
最近使用thinkphp5做了个网站,为pc端做了个移动网站,发现使用thinkphpp 5非常方便,也很高效,但是也发生了很多问题,现在把问题总结出来,希望得到管理员的解决。
1、无法使用thinkphp配置的数据库扩展名,提示“SQLSTATE[42S02]: base table or view not found: 1146 Table 'bjp51.__user__' doesn't exist”,如下代码        $main = Db::name('main')
            ->alias('a')
            ->join('__user__ b','a.userid = b.id')
            ->where('a.id',$id)
            ->find();
2、路由问题。
A、我想使用http://127.0.0.1/m/zx/show-209.htm访问http://127.0.0.1/index.php/m/zx/show/id/209的资源
B、我想使用http://127.0.0.1/m/访问到http://127.0.0.1/index.php/m/的资源
目前的问题就两个,还在学习中!
最佳答案
评论() 相关
后面还有条评论,点击查看>>