Are you interested in smarty3? "Smarty3.X: discard the original syntax and use the native PHP syntax comprehensively", but you do not know how to set parameters

Source: Internet
Author: User
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');

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.