Post-processing a template

From: Date: Tue, 03 Jun 2003 21:56:32 +0000
Subject: Post-processing a template
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9642@lists.php.net to get a copy of this message
Hi everyone, A site I'm currently working on has one template file for the entire site. I've defined a left side area and a right side area that the administrator can edit with a CMS tool I've built. When a page is loaded, I want to retrieve the data for the page from the database, stick it into the Smarty template and compile it for display. However, I want to be able to store HTML, PHP, or any Smarty code in the database and have it be executed when the page is compiled. From my understanding, Smarty will stick the contents I assign a variable into the template and that's where the processing stops. Can I take it a step further and have it stick the contents of my variable into the template and then process the file again for display? I've read the information about postfilter in the documentation. Will this work with Smarty code that I stick in the database? That's really the kind of feature that I need. Thanks for the info. Ed

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