Structures_Datagrid:: calling toHTML() isnt possible
| From: | Alexander Petri | Date: | Thu, 11 Nov 2004 15:55:11 +0000 |
| Subject: | Structures_Datagrid:: calling toHTML() isnt possible | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15442@lists.php.net to get a copy of this message | ||
why isnt it possible to call
$dg->toHTML() ???
//
Fatal error: Call to undefined method Structures_DataGrid::toHTML() in ....
//
but $db->render() is possible?
i use the normal HTML Table renderer and put it into
smarty...
like this:
$smarty->assign("tabelle",$dg->render());
$smarty->assign("pager",$dg->renderer->getPaging());
i had to patch the file HTMLTable.php on line ~205 to "return return
$this->toHTML($dg);"
is there another way without patching the class?