|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
kaosland Smarty n00b
Joined: 22 Dec 2010 Posts: 2
|
Posted: Thu Dec 23, 2010 7:32 pm Post subject: {include} tpl already cached other in code |
|
|
ex:
Tpl : home.tpl, news.tpl
somewhere in the code i do:
//PHP
smarty->fetch('news.tpl',$news_id ); // create the cache of news with id news to cache_id.
If in controle for home
i don't do in tpl home
//in TPL
{include file='news.tpl' cache_id=$news_id}
heresmarty want create a cache , don't get the cache already created.
so i propose
{include file='news.tpl' from_cache_id=$news_id}
where use the existant cache
// sorry for my english |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|