Re: [smarty] RE: Basic Question: Best practices of site building.

From: Date: Wed, 21 Nov 2001 20:59:58 +0000
Subject: Re: [smarty] RE: Basic Question: Best practices of site building.
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-3034@lists.php.net to get a copy of this message
Thanks for the code... so do you write separate PHP pages for each template page delivered? Cheers! Peter. At 09:42 AM 11/21/01 +0100, you wrote:
------------------------------------------------------- $module = get_module_name_from_somewhere(); // From the DB, likely include "$module.php"; $module_object = new $module; $html = $module_object->get_HTML(); $layout = new Smarty; $layout->assign('PLACEHOLDER', $html); $layout->display('layout.tpl'); -------------------------------------------------------
-- In the beginning was the word, and the word was Content-type: text/plain.

« previous php.pear.dev (#3034) next »