Re: New custom function

From: Date: Sat, 17 Nov 2001 17:10:35 +0000
Subject: Re: New custom function
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1935@lists.php.net to get a copy of this message
Hello, At 03:37 PM 11/17/01 +0100, you wrote:
not that bad as the scots usually rate such nice ideas.
Thanks for the compliment. Being English I would have said "Topping, what ho!" instead ;-)
You know that this will be followed by a lot of more desires!? ;-)
Good :-) I'm bored and can't think of anything else to code, so this will keep me going for a bit...
For example: - introducing the other features of the PEAR table class.
Which ones?
- introducing the PEAR DB_Pager class.
I can't even get it to work at the moment - once I can, I may have a go - anyone got any tips/scripts using it they can send me ?
- doing the same for the other PEAR HTML stuff (forms? )
This is coming, I am working with Bertrand on the form stuff (OK, I'll admit it - I gave him the ideas and told him to do the coding!) so they'll work better with Smarty. I'll let you know what develops...
Some cleaning up I had to do: - there is no display() method for the table class ( => toHTML() )
I think you are working with an old version of the class, as it's been added in a more recent one. Try the latest from PEAR CVS (which still has a bug, with the altrowAttributes function) which is generally better.
- the loop array should be padded to an appropiate amount ( $loop=array_pad ($loop, $cols * $_rows, ""); ) to get rid of not existing index warnings
I get no errors even with error_reporting set to E_ALL. Can you supply more details please? It may go away when you use the latest version of the table class, because this should be handled internally.
- you named the function "make_table", but used "table" in the template
Very good point. If no-one disagrees then I'll change the function name - for those of you already using it it'll mean re-mapping the function to the Smarty tag, but is probably better in the long run.
Shall I sent you a copy of my implemention? (with assoc. arrays, caption and header tags)
Yes please! Those are things I was thinking I should add :-) Thanks for the feedback, Peter. -- Maple Design - http://www.mapledesign.co.uk

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