Do you pay attention to smarty3? "Smarty3.X: discard the original syntax and fully use the native PHP syntax", but you do not know how to set parameters and write them as follows in the template file by default, no output: & lt ;? = '1 '? & Gt; & lt ;? Php = '1 '? & Gt; & lt ;? Echo '1 '? & Gt; & lt ;? Echo '1'; are you interested in smarty3? "Smarty3.X: abandon the original syntax and use the native PHP syntax comprehensively", but you do not know how to set parameters
By default, the template file is written as follows without any output:
What I expect to see is output character 1
------ Solution --------------------
Use it after the official version is released!
------ Solution --------------------
Thank you for your attention.
Let me check it out.
------ Solution --------------------
I suspect that the original syntax is discarded and the native PHP syntax is fully used, but the delimiters are set
Previously, it was defined by myself and used Many
Just give it a try. Let's take a look.
I checked the official documents on the internet. They were all old ones. it seems that they didn't fall into the syntax. I don't know where the message came from. Is there a url?
------ Solution --------------------
To 6F
If It is not the same if it is set as a delimiter.
------ Solution --------------------
We recommend that you use
------ Solution --------------------
Discussion
Why?
------ Solution --------------------
PHP code
$smarty->display('php:index.php');