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 ......