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

急Tp的create方法有关问题

WBOY
Release: 2016-06-13 10:04:44
Original
852 people have browsed it

急,Tp的create方法问题

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$user=M('user');$list=$user->create();dump($list);
Copy after login


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

------解决方案--------------------
看下tp中的runtime文件夹下面是否生成了与数据库表重名的文件,清理掉试试。
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template