ThinkPHP Development Guide-model-how to achieve consistent operations in the tp model I have not found the limit method order method where method field method & nbsp; how can I implement the following? & Nbsp; in which file is the implemented code? & Nbsp; high finger point $ list $ user-& gt; limit (2)-& gt; order (array (id & gt; thinkPHP Development Guide-How to Implement model-related operations
I have not found the limit method in the tp model. The order method where method field method
How does one implement the following?
In which file is the implemented code?
High finger points
$ List = $ user-> limit ('2')-> order (array ('id' => 'desc', 'Username ')) -> where ('Id> 1 ')-> field ('Id, username')-> select ();
------ Solution --------------------
In Model. class. php, public function _ call ($ method, $ args) implements consistent operations ~