Android programmers learn PHP development (29)-ThinkPHP5.0 (1) initial experience-PhpStorm

Source: Internet
Author: User
Nowadays, many companies directly require thinkPhp framework. you may prefer native, but you cannot deny the efficiency of framework development. Okay. let's learn ThinkPHP5.0 together ~~ Nowadays, many companies directly require thinkPhp framework. you may prefer native, but you cannot deny the efficiency of framework development.

Okay. let's learn ThinkPHP5.0 together ~~

I use the full ThinkPHP5.0.5 version as the exercise version ~~

1: http://www.thinkphp1.cn/down.html

2: http://download.csdn.net/detail/iwanghang/9763145 (recommended download here, download the official website I failed, I found the version from other places)

Portal file:

After you configure your database information in database. php, you can perform database operations in \ application \ index \ controller \ index. php. refer to the following code:

(It doesn't matter if you don't understand the code that has been commented out. we will continue to learn about it in the next blog ~)

 '; Print_r ($ this-> request-> param ());//#: 8888/myPhpDemo/ThinkPhp5.0.5/ThinkPHP_full_v5.0.5/public/index/aa/11/bb/22/cc/33 // Print the above connection result: array ([aa] => 11 [bb] => 22 [cc] => 33)/*** query users table information and print */$ data = Db :: name ('users')-> find (); print_r ($ data); // $ this-> aasign ('data', $ data ); // $ this-> aasign ('name', name); // return $ this-> fetch (); return'        

:)

ThinkPHP V5
Ten years of experience-a high-performance framework designed for API development

[V5.0 is exclusively sponsored by Qiniu Cloud]

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.