Home > php教程 > php手册 > php—Smarty-缓存2(26),phpsmarty-缓存26

php—Smarty-缓存2(26),phpsmarty-缓存26

WBOY
Release: 2016-06-13 09:05:10
Original
825 people have browsed it

php—Smarty-缓存2(26),phpsmarty-缓存26

一个页面中,有些数据缓存,有些数据不缓存,就是局部缓存

l  $smarty->assign(“var”, “value”, true)

第三个参数:表示是否不缓存

l  {$var nocache=true}

在模板变量量后使用nocache参数

l  {nocache}{/nocache}

使用一对nocache标记,之间的所有内容不缓存

MVC中应用Smarty

一、MVC

1、M:模型

2、  V:视图

3、  C:控制器

就是需要用Smarty替换我们之前的View组件

 

Related labels:
source:php.cn
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template