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

急Tp的create方法有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:53:14
Original
963 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
Latest Issues
How to create abc.php file
From 1970-01-01 08:00:00
0
0
0
How to create python format text in win10
From 1970-01-01 08:00:00
0
0
0
How to create utf-8 files in python?
From 1970-01-01 08:00:00
0
0
0
Create a php file of specified size
From 1970-01-01 08:00:00
0
0
0
Create VUE UI component library
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template