Date: 12/12/00
- Next message: donovan.wade <email protected>: "[phplib] PHPLIB & PHP"
- Previous message: Joel Sutton: "Re: [phplib] PHPLIB Documentaion"
- In reply to: zoltan.sebestyen <email protected>: "RE: [phplib] Block Template Article and Template Caching"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
zoltan.sebestyen <email protected> wrote:
>
> Hi,
>
> I've just read your letter and the article [I'm far behind reading PHPLIB
> mailinglist]. I think it's a fine piece.
> One question how would you do if not just one but more tables are need from
> the same type? I mean I would like to divide up information of one sql query
> result to several tables to improve readability and I think it should be
> possible to use the very same template file such as the one you have in you
> article but parsing it into final html page more than once. The sad thing is
> that I just couldn't manage to do it.:( Any ideas?
Good question, I haven't needed that myself. I'm not exactly clear on
what you do want to do, since I can't understand why readability would
be better by pasting the same table several times around the code.
If you look at my parse strings, I use pparse, if you look in the docs
for phplib templates (http://www.phplib.de) you'll find a function which
is called only parse (IIRC) which will return a variable which you can
print/output several times.
You could also set the template to "" after parsing, and then parse it
again (I hope, and believe) and thus use the same template again later
on.
I think that covers about what you need to do.
-- Paul K Egell-Johnsen Utvikler/PR Manager eZ systems as http://ez.no/--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: donovan.wade <email protected>: "[phplib] PHPLIB & PHP"
- Previous message: Joel Sutton: "Re: [phplib] PHPLIB Documentaion"
- In reply to: zoltan.sebestyen <email protected>: "RE: [phplib] Block Template Article and Template Caching"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

