Thinkphp is a beginner who follows the official documentation to practice but encounters a problem where variables cannot be output. Controller template output result
Thinkphp is a beginner who follows the official documentation to practice but encounters a problem where variables cannot be output.
Controller
Template
Output result
Reply content:
Thinkphp is a beginner who follows the official documentation to practice but encounters a problem where variables cannot be output.
Controller
Template
Output result
Function call error? Let's take a look at the tutorial.
See what the template tag is.
How is your template hello.html Supposed To Be php?
Check whether execution is performed.hello
Method.
You should read the template directly.
You paste your access URL.
Check whether the configuration file has any settings.TMPL_L_DELIM
In this case, it is generally a matter of delimiters, causing the template engine to not parse variables.
I didn't see any problems.
The default template tag is <$ name>.
You need to take a look at your project configuration file to see your template selection. If it is not set to smarty, the default template is Think, which uses <$ name> for output.