Look at the results first--
The page source code is as follows:
Analysis of the code, after checking index_config.php (smarty Connection file), index.php files are error-free, the following focus on the template file, perhaps the reason is on this TPL file, out of the code--
Copy the Code code as follows:
{% config_load file= "1.conf" section= "Style2"%}
{% #title #%}
{% $hello%}
{%* This is a comment statement *%}
{% $array. 0%}
Smarty cannot parse the variables in the template file into corresponding values, it must be the wrong call to the file, but look at the code is also true Ah, and the book, online almost the same, how can be wrong??
At the time of baffled, it was suddenly discovered that their code was more space than they were when they called the variables ........ ..........
Delete space, done:
Page source code
Summary, when using the Smarty template, do not add space for the beauty and readability of the code, so that Smarty will not interpret these as variables, and will directly output
http://www.bkjia.com/PHPjc/324019.html www.bkjia.com true http://www.bkjia.com/PHPjc/324019.html techarticle First Look at the results-the page source code is as follows: Analysis of the code, after checking index_config.php (smarty Connection file), index.php files are error-free, the following focus on the template file, can ...