Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

{include} tpl already cached other in code

 
Post new topic   Reply to topic    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:   
Post new topic   Reply to topic    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