Re: Smarty vs PEAR::HTML_Template_IT

From: Date: Tue, 17 Dec 2002 19:10:07 +0000
Subject: Re: Smarty vs PEAR::HTML_Template_IT
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3022@lists.php.net to get a copy of this message
Bertrand Mansion schrieb in php.pear.general: >> Simple use Quickform->toArray(). >> >> I have described this here: >> >> http://news.php.net/article.php?group=php.smarty.general&article=6679 > > Cool ! :) > I was sure this method would be useful one day ! The only thing i missed is to have informations about alternativ template (code) in this array. This would be useful to get the same functionality as provided by using: $form->setElementTemplate($template, 'element'); Maybe a simple way is yust to have the $template string in the array and let fexible handle smarty this: // given string is smarty template code... {if $element.template} {eval var=$element.template} {/if} // ...or describe a template source {if $element.template} {include file=$element.template} {/if} Yust as an idea. I will have a closer look in toArray() code, when I need this. :) ThS.

« previous php.pear.general (#3022) next »