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]