How to understand smarty
This article introduces the relevant knowledge of "how to understand smarty". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The specific analysis is as follows:
After smarty establishes the configuration file and displays the file, the configuration file is displayed separately, so that the artist can be perfectly separated from the development work.
Configuration page code: index.php
The copy code is as follows:
Kk.html
The copy code is as follows:
Untitled document
{$content}
{section name=truelife loop=$mylife}
{$mylife [truelife]}
{/ section}
This is the end of "how to understand smarty". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!