Re: New custom function

From: Date: Sat, 17 Nov 2001 14:37:06 +0000
Subject: Re: New custom function
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1934@lists.php.net to get a copy of this message
> I've written a wrapper for the PEAR Table.php class to be used as a Smarty > function. The code and a basic tutorial can be found at > <http://www.mapledesign.co.uk/coding/smarty_table.php> Hallo Peter, not that bad as the scots usually rate such nice ideas. You know that this will be followed by a lot of more desires!? ;-) For example: - introducing the other features of the PEAR table class. - introducing the PEAR DB_Pager class. - doing the same for the other PEAR HTML stuff (forms? ) Some cleaning up I had to do: - there is no display() method for the table class ( => toHTML() ) - the loop array should be padded to an appropiate amount ( $loop=array_pad ($loop, $cols * $_rows, ""); ) to get rid of not existing index warnings - you named the function "make_table", but used "table" in the template Nevertheless a good starting point for improving Smarty! Shall I sent you a copy of my implemention? (with assoc. arrays, caption and header tags) thankx, Werner

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