Home  >  Article  >  Backend Development  >  急Tp的create方法有关问题

急Tp的create方法有关问题

WBOY
WBOYOriginal
2016-06-13 10:04:44757browse

急,Tp的create方法问题

PHP code
$user=M('user');$list=$user->create();dump($list);


返回来的是,array(0){},什么意思?
  create() 和add()以后,post数据添加不到数据库,是什么原因?
  我把数据库表都对了N多回了……

------解决方案--------------------
看下tp中的runtime文件夹下面是否生成了与数据库表重名的文件,清理掉试试。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn