Re: Smarty vs PEAR::HTML_Template_IT

From: Date: Tue, 17 Dec 2002 19:50:45 +0000
Subject: Re: Smarty vs PEAR::HTML_Template_IT
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3023@lists.php.net to get a copy of this message
<ths@4bconsult.de> wrote : > 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} This should be easy to add to the toArray() method. If you come up with a patch that implement this, I will commit it. > Yust as an idea. I will have a closer look in toArray() code, when I need > this. :) Let me know if you come up with something. Thanks, Bertrand Mansion Mamasam

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