Cause 1: The developer assigns parameters to the add () method through arrays.
In this way, the "auto-fill" of TP is taken over, and the fields in the auto-fill cannot be automatically assigned.
For example:
$ Data ['stopic '] =_ _ post ['stopic'];
$ Data ['scontent'] =_ _ post ['scontent'];
$ Result = $ obj-> Add ($ data );
In the following code, the ddatetime field cannot obtain the value of the function time:
Protected $ _ auto = array (
Array ('ddatetime', 'time', self: model_insert, 'function '),
);
Cause 2: The Module name in D ('module name') must be the same as the module name model. class. in PHP, it generally starts with an upper case and corresponds to a table name. Table names are all lowercase letters.
For example, the table name is think_article, D ('module name') is D ('Article'), and "module name model. Class. php" is articlemodel. Class. php.
Zhang Qing (mesh), Weibo: http://t.qq.com/zhangking
From mesh horizon: http://blog.why100000.com
Why 100,000 computer learning networks: http://www.why100000.com