In a page, some data is cached, and some data is not cached, which is partial caching
l $smarty->assign(“var”, “value”, true)
The third parameter: indicates whether to cache
l {$var nocache=true}
Use the nocache parameter after the template variable
l {nocache}{/nocache}
Use a pair of nocache tags, everything in between is not cached
Applying Smarty in MVC
1. MVC
1. M: Model
2. V: View
3. C: Controller
We just need to replace our previous View component with Smarty