Home
Backend Development
PHP Tutorial
php Smarty First Experience 2 Obtaining Configuration Information_PHP Tutorial



php Smarty First Experience 2 Obtaining Configuration Information_PHP Tutorial
php
smarty
one time
two
code
experience
information
analyze
examine
source code
result
Obtain
Configuration
page
Let’s look at the results first——
The page source code is as follows:
Analyze the code. After checking the index_config.php (Smarty connection file) and index.php files, there are no errors. Let’s focus on the template file. The possible reason lies in this tpl file. Here is the code——
Copy code The code is as follows:
{% config_load file="1.conf" section="style2" %}
< ;html>
{%$hello%}
{%*This is A comment statement *%}
{%$array.0.0%}