Ask the superior to explain how the template tag is interpreted
Source: Internet
Author: User
I recently learned how to write custom tags, but I am not very familiar with the principles of TP parsing templates and tags. I hope you can give me some advice, the specific parsing process, for example, how $ this-& gt; assign () works, and those classes and methods are called during display. no result is found online for a long time... Ask the superior to explain how the template tag is interpreted.
I recently learned how to write custom tags, but I am not very familiar with the principles of TP parsing templates and tags. I hope you can give me some advice on the specific parsing process, for example, how $ this-> assign () works, and those classes and methods are called during display, so no results have been found online for a long time... Template? Tag
------ Solution --------------------
View the Lib/Core/View. class. php file in ThinkPHP
In fact, you do not need to know more, especially for beginners.
You can use this method.
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.