Home > Backend Development > PHP Tutorial > smarty模板里引出PHP文件

smarty模板里引出PHP文件

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:35:45
Original
982 people have browsed it

smarty模板里引入PHP文件

有一个a.php对应a.tpl的页面,a.tpl里有一个块我是想做成缓存的,其它动态。。

如何实现?

可以把那一块抽出来成b.php对应b.tpl吗,然后做成缓存的。。

如果这样可以,a.tpl要怎么引进b.php,include ?

还有其它办法?

------解决方案--------------------
引用php可以用 include_php 'php路径'; 跟引用tpl一样用。

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template