Re: More efficient fetch?

From: Date: Tue, 22 Jan 2002 14:20:27 +0000
Subject: Re: More efficient fetch?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2558@lists.php.net to get a copy of this message
On Sat, 19 Jan 2002, Peter Bowyer wrote: > Hi, > > I think there may be a need for a Smarty function that will fetch the > template the first time, and then reference it as a string for the next 'n' > requests for the template, where n is an integer. I have come across > situations that could make use of it such as when I have templates like the > following: > > <table width="160" align="{$article_image_align}"> > <tr> > <td bgcolor="#e9f0f7"><img > > src="{$_GALLERY_THUMBNAIL_PATH_}{$article_image_owner_id}/{$article_image_id}.{$article_image_type}"><br>{$article_image_caption}</td> > </tr> > </table> > > that are referenced 10+ times in each page. To read the template from disk > each time is more overhead than I want. Go ahead and write a custom function then - that's the power of Smarty. :) -Andrei "Later in this talk, I intend to define the universe and give three examples." -- Larry Wall

« previous php.smarty.general (#2558) next »