Re: Re: DB_DataObject and Templates
| From: | Ken Restivo | Date: | Wed, 01 Dec 2004 16:34:16 +0000 |
| Subject: | Re: Re: DB_DataObject and Templates | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15949@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Dec 01, 2004 at 01:09:11PM +0100, Michael Wallner wrote:
HTML_Table seems to want this slightly uglier version:
$htmltab =& new HTML_Table();
> while ($table->fetch()) {
$htmltab->addRow(array_values($table->toArray()));
> }
Dealing with headers is a PITA when using DBDO with HTML_Table though. Maybe I should learn
templates instead.
- -ken
- --
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBrfKIe8HF+6xeOIcRAijuAKCtSQZ6vQoKaI5m36dpxoGJgshq5QCfWYnr
jmTiqiBjHTiBK7Y4lo8R//E=
=s0jn
-----END PGP SIGNATURE-----