Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

{include} tpl already cached other in code

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
kaosland
Smarty n00b


Joined: 22 Dec 2010
Posts: 2

PostPosted: Thu Dec 23, 2010 7:32 pm    Post subject: {include} tpl already cached other in code Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP