Re: How to use a Smarty variable in an external source ?

From: Date: Mon, 23 Jul 2001 05:10:58 +0000
Subject: Re: How to use a Smarty variable in an external source ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1238@lists.php.net to get a copy of this message
Jason, I don't get your template to generate a template idea.. could you elaborate ? In my case my problem can be seen at http://www.interpasnet.com Its a little site I use to test and learn stuff. If you click on the third menu item in the first bloc / left column (the item is "Internet & discretion(nouvelle version pas finie) ", you access a text. This text is in fact a XML file I use to generate the various chapters and the contextual menu on the left. This file contains several variables that you can see by selecting the item [2] in the contextual menu : [2] Petits concepts de base (direct url : http://www.interpasnet.com/xmlprocess.php?screen=cachecache&section=cachecache&file=cachecache.xml&id=2 ) The XML file contains some variables that are "assigned" by xmlprocess.php file but are not processed by Smarty. I'm realizing that this is perhaps a limit of the template concept as both my variables AND the text itself are arrays, except if it could be possible to set the order o the array processing by Smarty or to control the moment when the search/replace is done..... Luc At 22:23 22/07/01 -0500, Jason Sweat wrote:
This is similar to a thread I brought up earlier. The only idea I came up with was to have one template dynamically generate another, the call the second template with PHP. While this would work, it would always have to be compiled because it would be "new" every time, even if it did not "really" change. Maybe if we could hand Smary and identifier for the template, it could internally keep track of something like the length and checksum for the template to determine if in needs recompiling... I would think this is something like what they must have had to consider when thinking about storing templates in a database. Jason


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