The fetch method of smarty cannot use the include solution.

Source: Internet
Author: User
Tags smarty template
The fetch method of smarty cannot use include. when I use the SMARTY template engine, I have made a good template. The template uses the include method of smarty to include files, however, it is not easy to parse the template using the fetch method and assign it to a variable. I want to save the obtained content as a file and cannot get the value now. in addition, the include part is output directly. I know that the include method can be replaced by the smarty variable, and the include method cannot be used for the smarty fetch method.
Guys, when I used the SMARTY template engine, I made a good template. The template uses the smarty include to include the file, but I used the fetch method to parse the template and assign it to a variable, not easy to use. I want to save the obtained content as a file and cannot get the value now. in addition, the include part is output directly.
I know that the include method can be replaced with the smarty variable, but this is not good.
Can I use the include method and fetdch for parsing?>

------ Solution --------------------
SMARTY again
I 'd like to see if I can get a satisfactory answer!
------ Solution --------------------
Upstairs, anyway, it's so urgent. I got it, huh, huh
------ Solution --------------------
Make sure that every year's boat, especially the code, has a single character missing.

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.