[Htmltmpl] Question regarding PHP version
Brought to you by:
jakubvrana,
tripiecz
From: Chris B. <ch...@ty...> - 2003-02-03 22:46:13
|
Hey everyone, New to the list here. I've been using the Perl HTML::Template for several years and I was overjoyed to find a PHP version since I'm doing a lot of PHP development for my current employer. I have a question though regarding the ability to get parameter names. In the Perl version you can do $template->query() and get a list of the token names in the template. Or $template->query(name=>'foo') and get the type of token it is (i.e. LOOP, VAR etc.). I've been digging through the docs of this version and I haven't been able to find something similar. Is there an undocumented way I could do this? BTW what I'm trying to do is give a person the ability to assign a template token name to different pieces of code without actually editing the template itself. So say I have <TMPL_VAR foo>, I want an admin area that I can tell 'foo' to point to a certain bit of text in the database, or a bit of code that needs to be executed, etc. ... all without changing the template file itself. I know it seems a bit backwards so if someone has a better idea on how to accomplish something like that I'm open to suggestions. Thanks in advance, Chris -- Chris Brown Web Application Developer Ballistic Web Design http://ballisticwebdesign.com/ 903-533-8666 |