An error is always reported When PHP code is embedded in the Smarty template. how can this problem be solved?

Source: Internet
Author: User
The PHP code embedded in the Smarty template always reports an error. I want to teach you the Smarty experts. I directly embed the PHP code in the Smarty template. When an error is reported, I also set $ php_handling to promised, urgent, and urgent, hope you can give me some advice! & Nbsp;, {php} echo & nbsp; $ a; {/php} or the PHP code embedded in the Smarty template always reports an error
I want to teach you how to use Smarty. I directly embed PHP code in Smarty. I also set $ php_handling as promised when I reported an error. it's urgent and urgent. hope you can give me some advice!
------ Solution --------------------
{Php}
Echo $;
{/Php}

Or

Echo $;
?>

------ Solution --------------------
Using smarty3 to directly support PHP functions
------ Solution --------------------
Error message
------ Solution --------------------
The reply was deleted by the moderator at 10:59:12, January 16 ,.

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.