After doing the secondary development of destoon and discuz, two relatively complex templates, I always want to write a summary to inspire others to learn other templates again.
1. It gives me the impression that PHP templates mostly include various files, and there are more than one types of include. For example: include template uses the template engine to parse the template, and include libfile loads the background file ( in discuz), when we come into contact with a new template, the first choice is to study this and the writing of parameters in depth (for example, the first parameter of discuz's include template, "diy:forum/post" and "forum/post" are different ), should be something very important.
2. Generally, PHP templates have entry files, some are one, some are multiple. Entry files often initialize many variables and constants. It is important to know these.
3. To be continued...
The above is the detailed content of Summary of destoon and discuz. For more information, please follow other related articles on the PHP Chinese website!