Home » Structures » Structures_DataGrid » Bug #4350
Structures_DataGrid_Renderer_XML constructor needs variable by reference
Details
| Submitted | 2005-05-15 16:41 UTC |
|---|---|
| From | tier at gregor-widuch dot de |
| Assigned | asnagy |
| Status | Closed |
| Package | Structures_DataGrid |
| PHP Version | 4.3.8 |
| Roadmaps | (Not assigned) |
Comments
[2005-05-15 16:41 UTC] tier at gregor-widuch dot de
Description:
------------
The sample "example-xml.php" only returns
<?xml version="1.0"?>
<DataGrid>
</DataGrid>
I think I found the reason:
In file Structures/DataGrid/Renderer/XML.php the constructor is buggy. The variable $dg is not passed by reference. When I change this the sample works.
function Structures_DataGrid_Renderer_XML(&$dg)
{
$this->_dg =& $dg;
}