Re: Re: Question about template systems
| From: | Robert Cummings | Date: | Thu, 05 Mar 2009 11:16:16 +0000 |
| Subject: | Re: Re: Question about template systems | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289357@lists.php.net to get a copy of this message | ||
On Thu, 2009-03-05 at 03:08 -0800, Michael A. Peters wrote:
> Robert Cummings wrote:
>
> >>
> >> function hiddenInput($document,$name,$value) {
> >> $input = $document->createElement("input");
> >> $input->setAttribute("type","hidden");
> >> $input->setAttribute("name",$name);
> >> $input->setAttribute("value",$value);
> >> return($input);
> >> }
> >>
> >> Does that answer your question?
> >
> > That was what I thought.
> >
> > Cheers,
> > Rob.
>
> Is there a reason I shouldn't be doing it that way?
I didn't say you shouldn't. It's just expensive on every page request to
regenerate a document node by node. it also strikes me as tedious :/
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP