How to use Smarty template
This article mainly introduces how to use the Smarty template, the article is very detailed, has a certain reference value, interested friends must read it!
The details are as follows:
Set up the templates,templates_c,configs,cache directory in the Smarty directory. So that Smarty can compile and cache.
Create a smarty_inc.php file to configure smarty as follows:
Line test, create the index.php file in the root directory:
Create an index.html template under templates: