Re: DataObject with ITX

From: Date: Tue, 15 Apr 2003 03:05:45 +0000
Subject: Re: DataObject with ITX
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-4846@lists.php.net to get a copy of this message
Diego Algorta Casamayou wrote:
Hi there. I've just subscribed. I've searched the archives and didn't find an answer so, I'm asking now. Does anybody use DataObject AND ITX Templates? I suspect the $dataObject->toArray() may be usefull for that, (not having used ITX that much)
I use it alot now for the quickforms integration code, and usually override toArray and setFrom() to provide a few extra variables, eg. function toArray($s='%s') { $ret = parent::toArray($s); $ret['prettyDate'] =date('d M Y',$ret['somedate']); return $ret; } I'm not sure if ITX allows you to send arrays when there may not be template elements defined for them. 'more a case of best match', rather than 'fixed matching', perhaps the ITX authors could comment. Regards Alan
I'd like to view some examples of use. Thank you. Bytes DAC


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