Dz usage-php Tutorial

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.