Re: [SMARTY] insert: problem with a variable name attribute

From: Date: Mon, 12 Aug 2002 18:14:38 +0000
Subject: Re: [SMARTY] insert: problem with a variable name attribute
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5658@lists.php.net to get a copy of this message
I use a different structure that sounds like it accomplishes what you want, but does not us an insert. I have pages defined as a series of "boxes". In PHP I assemble and associative array of boxes with each item having attributes like title, comment, style and content. The content is usually fetched from other smarty templates, and may be cached for performance. The outermost template is just for layout, and knows what to do with the "style" attribute of the box array to make things look right. I have no caching on this outer template, because all of the content that should be cached for performance already was at the step where I assembled the content. Hopefully that approach might be of some use to you. Regards, Jason >> I have to and hope you now understand why. ;-) Regards, Thomas. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com

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