Dz usage problems this post was last edited by h420943302 from 2012-11-2714: 33: 10 and has been using thinkphp & nbsp; do not know dz & nbsp; I would like to ask & nbsp; basic applications such as & nbsp; in thinkphp & nbsp; $ aM (Table)-& gt; order (RAND ()) -& gt dz usage problems
This post was last edited by h420943302 at 14:33:10, January 27 ,.
I have been using thinkphp for a long time and don't know about dz. I 'd like to ask about basic applications.
For example, in thinkphp
$ A = M ('table')-> order (RAND ()-> limit (20)-> select ();
$ This-> assign ('A', $ );
How is it represented in dz?
The most important thing here is how to write mysql Query statements in dz.
Another is how to pass variables to the template in dz.
Or you can send a full dz Development Manual.
------ Solution --------------------
Haha, the framework's ills are revealed!
Leave the crutches and you will not walk.
We suggest you try again from native php