PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Structures » Structures_DataGrid » Bug #3071

DataGrid doesnt work in PHP5

Details

Submitted2004-12-31 01:46 UTC
Fromdaniel at electroteque dot org
StatusBogus
PackageStructures_DataGrid
PHP Version5.0.3
OSOSX
Roadmaps(Not assigned)

Comments

[2004-12-31 01:46 UTC] daniel at electroteque dot org

Description:
------------
I get a blank page when testing DataGrid in PHP5

Reproduce code:
---------------
$dg =& new Structures_DataGrid();
var_dump($dg);
// Get my data
$result = $db->query('SELECT * FROM users');
var_dump($result);
// Bind to DataGrid
$data = Structures_DataGrid_DataSource::create($result);

var_dump($data);
$dg->bindDataSource($data);

// Print the DataGrid
$dg->render();

Expected result:
----------------
A page of results ?

Actual result:
--------------
No result , var_dump returns null of $dg object seems to
exit ?

[2004-12-31 06:18 UTC] daniel at electroteque dot org

I didnt have HTML_Table and there was no error to tell
me so, there is also no example.tpl for the smarty
example.

[2005-04-27 09:40 UTC] mishuk77 at gmail dot com

DataGrid/Renderer/HTML_Table.php requires HTML/Table.php and HTML/Common.php to work. I did not have these files at first, and I the Datagrid object was not being created.

After getting HTML/Table.php and HTML/Common.php it worked fine.