RE: [PHP] need better solution...
| From: | James Atkinson | Date: | Tue, 15 May 2001 00:56:54 +0000 |
| Subject: | RE: [PHP] need better solution... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52776@lists.php.net to get a copy of this message | ||
I would suggest some sort of Templating solution. Take a look at Smarty,
PHPLib, or FastTemplates.
- James
> -----Original Message-----
> From: Christian Dechery [mailto:lemming@vento.com.br]
> Sent: May 14, 2001 5:11 PM
> To: php-general@lists.php.net
> Subject: [PHP] need better solution...
>
>
> In most of my scripts there are always headers and footers to html
> outputs...
> like logos, images, and on the bottom some links and stuff like that...
> that should always apear...
>
> the most basic is:
>
> <html>
> ... header here ...
> <?php
> lots of code
> ?>
> ... footer here ...
> </html>
>
> but sometimes I want something like this:
> <?php
> session_start(); // for instance
> code code code
> if(something)
> print error message and terminate script;
> ?>
> <html>
> sadasdsa
> </html>
>
> what do I do in this case??? I've tried all kinds of programing
> techniques... but none of them seems to fit here.
>
> ____________________________
> . Christian Dechery (lemming)
> . http://www.tanamesa.com.br
> . Gaita-L Owner / Web Developer
>