当前位置:Gxlcms > PHP教程 > thinkphp查询不出来数据,在本地可以,但是在FTP上就不行了

thinkphp查询不出来数据,在本地可以,但是在FTP上就不行了

时间:2021-07-01 10:21:17 帮助过:5人阅读

  1. public function index() {
  2. //列表过滤器,生成查询Map对象
  3. $map = $this->_search ();
  4. if (method_exists ( $this, '_filter' )) {
  5. $this->_filter ( $map );
  6. }
  7. $this->assign ( 'gametype', C('gametype') );
  8. $this->assign ( 'gametype_two', C('gametype_two') );
  9. $name=$this->getActionName();
  10. $model = D($name);
  11. if (! empty ( $model )) {
  12. $this->_list ( $model, $map );
  13. }
  14. $this->display ();
  15. return;
  16. }


回复讨论(解决方案)

配置文件修改正确了吗?

配置文件修改正确了吗?


修改正确。在本地localhost可以,正常。但是在FTP上就不行了。是不是区分大小写原因?

提供的信息太少了,有无错误信息,打开错误提示功能看看。

已经做出来了,是Model层的数据库名错了

人气教程排行