Home > Backend Development > PHP Tutorial > What is the essential difference between D() and M() in ThinkPHP?? I feel that the manual is not very clear.

What is the essential difference between D() and M() in ThinkPHP?? I feel that the manual is not very clear.

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-03-02 14:26:01
Original
1272 people have browsed it

What is the essential difference between D() and M() in ThinkPHP?? It feels like the manual is not very clear

Reply content:

What is the essential difference between D() and M() in ThinkPHP?? It feels like the manual is not very clear

d and m are both factory methods of the model layer. m can only instantiate the method of tp’s built-in model layer base class, which is more efficient, while d can generate the model layer code you created in the model directory

Related labels:
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
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
thinkphp versions supported by php6
From 1970-01-01 08:00:00
0
0
0
thinkphp upload files
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