The PHP file is extracted from the smarty template.
Source: Internet
Author: User
The php file introduced in the smarty template contains a. php page corresponding to a. tpl. there is a block in a. tpl that I want to make into cache, and other dynamics .. How to implement it? Can I extract the part into B. php corresponding to B. tpl and then cache it .. If so, how does a. tpl introduce B. php and include? Is there any other way ?, Reference php. you can use the include_ph smarty template to introduce the php file.
There is a. php page that corresponds to a. tpl. there is a block in a. tpl that I want to make into a cache, other dynamic ..
How to implement it?
Can I extract the part into B. php corresponding to B. tpl and then cache it ..
If so, how does a. tpl introduce B. php and include?
Is there any other way?
------ Solution --------------------
You can use plude_php 'php path' to reference php. it is used just like referencing tpl.
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