Re: Mixing PHP code with phplib templates... possible?
| From: | derek fong | Date: | Tue, 06 Feb 2001 16:58:25 +0000 |
| Subject: | Re: Mixing PHP code with phplib templates... possible? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38400@lists.php.net to get a copy of this message | ||
At 11:16 am +0300 2.6.01, Max A. Derkachev wrote:
df> I need df> to run all hyperlinks through a function in order to maintain state df> and pass other variables from script to script. I figure this must df> be possible, but I'm new at using phplib, so I'm not all that clear df> on it... Set the links as template variables and then substitute them with values using Template's set_var().Hi Max, Thanks for the reply. Unfortunately, the solution you suggest means that I would have to do a set_var on all hyperlinks (i.e., define all hyperlinks everywhere on the site), which is a huge amount of maintenance. What I thought about yesterday was creating some sort of token (e.g., {@@@@@}) that could be tacked onto the end of hyperlinks that I want to add session info to. Maybe there's a better way... I don't know! :( --- Derek Fong web://developer Zero-Knowledge Systems [http://www.zeroknowledge.com/] PGP Fingerprint >> 2D4F 89F0 EAC1 FBFB 97B5 0B94 FA05 C29E D23B 0A4E