Re: Get smarty to write standart code in every template ?

From: Date: Fri, 23 Mar 2001 18:01:21 +0000
Subject: Re: Get smarty to write standart code in every template ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-418@lists.php.net to get a copy of this message
Yeah, that's what i want. Where di i have to implement this code? thx taliku ----- Original Message ----- From: "Monte Ohrt" <monte@ispi.net> To: <taliku@balcab.ch> Cc: "Smaty ML" <smarty@lists.ispi.net> Sent: Friday, March 23, 2001 6:14 PM Subject: [smarty] Re: Get smarty to write standart code in every template ? > Yes, this can be done. Interesting idea, we'd know that the site was > built with Smarty, and know when the page was last generated, and > whether cached or not. We would have to be careful that only mime types > of text/html are affected, we don't want this showing up in other > formats of output. > > How configurable would this need to be? > > Just a simple: > $smarty_html_headers = true; > > or more configurable: > $smarty_headers = array( "text/html" => "<!-- Smarty %v %d (%c) > -->" ); > > %v = version > %d = date > %c = cache flag > > Other thoughts? > > taliku@balcab.ch wrote: > > > > Hello Everyone! > > > > Is it possible to edit a smarty-function (fetch?) to get smarty > > write a standart text on the beginning of every output > > like Vignette V/5 it does (http://www.vignette.com): > > > > Example: In every Site generated by Vignette V/5 (also known as StoryServer) > > on top is written the System and the time of generation: > > > > <!-- Vignette V/5 Fri Mar 23 16:59:47 2001 --> > > > > Is it possible? Will smarty then work slower? > > I don't want to write this on top of every .php file... > > > > thanks in advance > > > > taliku > > Sorry for my bad english :) --> Switzerland :) > > > > --- > > You are currently subscribed to smarty as: monte@ispi.net > > To unsubscribe send a blank email to $subst('Email.Unsub') > > Visit Smarty's homepage at > > http://www.phpinsider.com/php/code/Smarty/ > > -- > Monte Ohrt <monte@ispi.net> > http://www.ispi.net/ > > --- > You are currently subscribed to smarty as: taliku@balcab.ch > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/

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