Re: New looping method proposal

From: Date: Mon, 19 Nov 2001 15:51:04 +0000
Subject: Re: New looping method proposal
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1963@lists.php.net to get a copy of this message
hi, Anders Janson wrote: > If the {foreach} could be hacked as a plugin or custom function, I'd > say "Yes!! Go for it!!". it wouldn't be a plugin nor a custom function, it's just an addition to the (smarty) language, the functionality is basically the same, it's just an easier way of using it. you shouldn't compare this with e.g. a specialized table function, it's basically not the same (language contructs vs. custom functions). > Which means the only way is to hack the Smarty core, and I really > don't like the thought. > - If it works, don't fix it. > - If it is too specialized: don't add it. > - If it is optional - Sure, why not!? if we can enhance the (smarty) template language, why shouldn't we think about it? and since it is only an addition, i think, it's worth considering. andreas -- andreas kossmeier Hyperwave AG Graz - http://www.hyperwave.com

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