Re: Templates
| From: | Michael Kimsal | Date: | Sun, 14 Jan 2001 00:27:52 +0000 |
| Subject: | Re: Templates | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34430@lists.php.net to get a copy of this message | ||
I thought I understood your question, but I think I need a clarification.
Can you elaborate a bit? I think I have an answer, but I'm not 100% what
you're meaning here.
Thanks.
andrew wrote:
> Michael,
>
> Wouldn't a benefit be that you could pass a database query in via that
> variable, either via form submit or value of a clicked link?
>
> I know PHP can do this without a separate templating engine, but if you do
> use one then you can submit an array to a specific template. Is there a way
> to do this via built in functions without constructing the set of page
> object's first, or can you only do this in templates?
>
> regards,
> andrew
>
> On 1/13/01 7:06 PM, "Michael Kimsal" <michael@tapinternet.com> wrote:
>
> >
> >
> > PeterOblivion@aol.com wrote:
> >
> >> I looked around the web for templates and founf FastTemplates. Not exactly
> >> what i was looking for thoug
> >> lets say I have
> >> $file = "111"
> >> and there is a template "template.txt"
> >> and it contains
> >> "file #$file is blahlah"
> >>
> >> how can I make that a template?
> >>
> >> Thanks
> >> - Peter
> >>
> >
> > Any reason 'template.txt' couldn't just say
> >
> > file $<?=$file;?> is blahlah
> >
> > then include('template.txt'); in your main file?
> >
> > Not sure why you'd want to complicate things with
> > something like FastTemplates - I understand it has a use
> > and purpose, but the only long term benefit I see from
> > involved schemes like that won't be realized anyway
> > (discussion for another day).
> >
> >
> >