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.

WBOY
Release: 2023-03-02 14:26:01
Original
1226 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:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template