Thinkphp updates data PHPcodepublicfunctionedit () {$ FormM (& quot; release & quot;); if ($ vo $ Form-& gt; create ()) {$ list $ Form-& gt; save (); thinkphp updates data
PHP code
Public function edit () {$ Form = M ("release"); if ($ vo = $ Form-> create ()) {$ list = $ Form-> save (); if ($ list! = False) {$ this-> success ('data updated successfully! ');} Else {$ this-> error ("No data is updated! ") ;}} Else {$ this-> error ($ Form-> getError ();} $ this-> assign ('form', $ Form ); dump ($ Form); $ this-> display ();}
------ Solution --------------------
It should be because the path has an error and the method in the class cannot be found.
------ Solution --------------------
Let's take a look at the auto-completion function of your Model class, $ Form = M ("release"); in addition, it should be capitalized.
$ Form = M ("Release ");