Re: [PHP Template] Includes in templates

From: Date: Wed, 29 Mar 2000 17:19:50 +0000
Subject: Re: [PHP Template] Includes in templates
References: 1  Groups: php.template 
Request: Send a blank email to php-template+get-492@lists.php.net to get a copy of this message
On Tue, 28 Mar 2000, Peter Andreasen wrote: > <h2>Example news page<h2> > > {subtemplate niceheader.tpl ('headline' => 'Business news')} > > <hr> > > {subtemplate niceheader.tpl ('headline' => 'World news')} > > where niceheader.tpl is a template which contains '{$headline}' > somewhere. > > That is, when in 'designer-mode' I want to use the template concept but > without need to switch to 'coder-mode'... > > >From the specs I would say something like the above is not possible with > the proposed template system. You would have to either write out the > HTML twice or actually write php-code to deal with the template > niceheader.tpl. > > Hmm. I am not sure this explanation is clear. Do you people see what I > mean? So, you want to include another template and pass values to it? Can I ask why you would want to pass headlines to a subtemplate? Seems like that should be coming from the PHP script. -Andrei * "UNIX, isn't that some archaic form of DOS?" - our job applicant *

« previous php.template (#492) next »