Vheissu / Ci-Smarty

Smarty templating engine integration for Codeigniter 3.0+ with inbuilt theming and asset management.
http://ilikekillnerds.com
179 stars 43 forks source link

I have problem about cache page #41

Closed mrminh231189 closed 9 years ago

mrminh231189 commented 10 years ago

My template is detail.tpl I used as $this->parser->parse("article/detail.tpl",$data); Data have "title 1" and url example.com/article/1 When i change url to example.com/article/2 (Data have "title 2") => Data don't change to "title 2", Data still show "title 1". Please help me. Thanks

Vheissu commented 9 years ago

This is more of a Smarty issue than a library one. The best recommended course of action is to use the nocache helper for sections of data that are dynamic: http://www.smarty.net/docs/en/language.function.nocache.tpl