Date: 01/08/01
- Next message: Paul Smith: "[phplib] Amazon.com-type login"
- Previous message: Stefan Becker: "[phplib] PHPLIB AUTH NOBODY problem"
- In reply to: Ronald Hartwig: "Re: [phplib] Which DB is best? Mysql, Postgresql, Interbase..."
- Next in thread: Jean-Cédric COSTA: "[phplib] Re: Which DB is best? Mysql, Postgresql, Interbase..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I have one question abuot templates. At first, what is quicker:
FastTemplate port from Perl (class.fasttample) or phplib templates?
And second. Is it better to construct page from more files or less.
For example, I can define:
<!-- main.ihml -->
<html>
<head></head>
<body>
{CONTENT}
</body></html>
<!--------------->
then assign so CONTENT some value and parse:
$tpl->set_var("CONTENT", "bla bla");
$pl->pparse("main");
O I could use two files for general structure:
<!-- header.thml -->
<html>
<head></html>
<body>
<!----------------->
<!-- footer.ihml -->
</body></html>
<!----------------->
And then parse anf print these three files:
$tpl->pparse("header");
$tpl->pparse("content");
$tpl->pparse("footer");
What is preferable and better to use?
Bye,
Saulius
-- aka Smu ICQ#: 6403695 [Azuolas] - http://www.azuolas.ktu.lt [GZK] - http://www.gim.ktu.lt/gzk--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Paul Smith: "[phplib] Amazon.com-type login"
- Previous message: Stefan Becker: "[phplib] PHPLIB AUTH NOBODY problem"
- In reply to: Ronald Hartwig: "Re: [phplib] Which DB is best? Mysql, Postgresql, Interbase..."
- Next in thread: Jean-Cédric COSTA: "[phplib] Re: Which DB is best? Mysql, Postgresql, Interbase..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

