Re[4]: [SMARTY-GENERAL] Smarty for non-db almost static sites

From: Date: Sun, 07 Apr 2002 16:37:24 +0000
Subject: Re[4]: [SMARTY-GENERAL] Smarty for non-db almost static sites
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3532@lists.php.net to get a copy of this message
Hi As far as I can see, you will want to make a PHP file for start page (with news), one for displaying content, that is exspecting a GET parameter to choose the text/whatever you want to include. News display would be index.php, content display may be content.php. Then, you would have footer header templates that are included in each of the PHP-files (or Smarty templates). The PHP files would first query content / get news, assign values to Smarty template variables and then display index.tpl or content.tpl. In this templates, first (see above) the header is included, then the variables sent to client, then the footer is included. Comments? Questions? Bye Manuel mailto:grin@gmx.net -- "How should I know if it works? That is what beta testers are for." -- Linus Torwald

« previous php.smarty.general (#3532) next »