Thinkphp beginner's note: Thinkphp beginner _ PHP Tutorial

Source: Internet
Author: User
Thinkphp beginner's note: Thinkphp beginner. Thinkphp's primary note: Thinkphp's initial start: Website. To be honest, it was the first time that ThinkPHP was launched. Select the reason for this framework... Thinkphp beginner's note: Thinkphp beginner
Prefix:

The website, to be honest, was the first time it was done, and it directly chose the ThinkPHP open-source framework. Select the reason for this framework... No longer remembers

It seems that I only had this in my cognition at the time, and other better frameworks were also known later in this graduation project. I think it's relative.

Using java to develop the web, I feel that php's direct controllability is more convenient for development, which can help me save a lot of work = and then start learning php (

I handed the front-end information to my classmates. fortunately ).

Note 1-how to call a method (function) in the Controller class )?

At the beginning of development, we placed methods in the Controller for direct calling based on our previous object-oriented understanding. then we found that it was not feasible and must

Place the method (Public) in the Public module or the function. php file of the Model, or you can create a new one to call it.

Note: The essence of the 2-HTML file

In the Thinkphp framework, because the framework itself will parse html files, this will allow you to customize tags, you can use , , Tags

For example:

1 
 
1 
 
  2     
  
    urlencode($file['name'])))}">{$file['filename']}
  3     
  
   {$file['filename']}
  
  4     
   {$file['filename']}5 
 

This makes me very happy to be unfamiliar with the web.

Conclusion:

It's a little long... I forgot a lot of things and wrote so much first.

This is a small amount of online information, so the official website documentation is very helpful to me.

Website: To be honest, it was the first time that ThinkPHP was chosen as an open-source framework. The reason for selecting this framework ......

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.