Re: New custom function

From: Date: Mon, 19 Nov 2001 11:02:29 +0000
Subject: Re: New custom function
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1947@lists.php.net to get a copy of this message
At 07:14 PM 11/17/01 +0100, Andreas Kossmeier wrote:
        {table name=table loop=$data cols=3 table_attr="width=100%"}
            <a href="{$data[table].href}">{$data[table].label}</a><br>
            {$data[table].comment}
        {/table}
that's how i would like to use a table tag/function. but those kind of tags also need a special compiler function.
Can any of the smarty team say whether this could be implemented generically? It would be nice to be able to write custom functions like this. Finally, there's a new version of the {table} function available - not as extensively tested, but it should work OK. Please let me know if you find any bugs. Regards, Peter. -- Maple Design - http://www.mapledesign.co.uk

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