Re: template logic problem
| From: | David Robley | Date: | Tue, 14 May 2002 09:35:48 +0000 |
| Subject: | Re: template logic problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97512@lists.php.net to get a copy of this message | ||
In article <001f01c1fae4$5291f830$0d01a8c0@avex>, list@objekt.com.au
says...
> HI miguel,
>
> thanks for your answer.
>
> I was hoping i could do something like you suggested. Cold Fusion has a tag
> called <cfhtmlhead> that will include anything within the <head> tags. You
> can call this function even on the last line of your php template. I used
> this a lot.
>
> Has anyone written a function like this? I tried searching but couldnt find
> anything.
>
> thanks
> chad
>
>
> > What I'd do is change your include()d template to wrap a function around
> > the <HTML><BODY> stuff. Then you can call it once you have enough
> > information available, and pass in any variable elements like the name of
> > that rotating image. This will make your templating a whole lot more
> > flexible (you can now specify the <TITLE> on each page, for instance).
> >
> > miguel
Maybe you could incorporate output buffering to achieve your goal?
--
David Robley
Temporary Kiwi!
Quod subigo farinam