Re: [Structures_DataGrid] Problems with Linux / PHP4: Empty
| From: | Daniel García | Date: | Mon, 14 Feb 2005 08:09:19 +0000 |
| Subject: | Re: [Structures_DataGrid] Problems with Linux / PHP4: Empty | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17522@lists.php.net to get a copy of this message | ||
olivier guilyardi wrote:
daniel@electroteque.org wrote:I found out though that method _buildHTMLTableBody is not accessing _dg->recordSet, even though the recordSet is ok in the datagrid object. For some reason, the datagrid object referenced in the _dg property of the renderer is not the same as the base datagrid object. Then, since PHP4 returns the result of the 'new' operator by value, I changed the example to $dg =& new Structures_DataGrid(4); instead of $dg = new Structures_DataGrid(4); And it worked :-). I guess the examples should be updated accordingly. Thanks for your replies, and kind regards. -- Danieldan rossi wrote:I tried removing the @ and using require_once instead of include_once, and had the same results.i've had a similer issue, you are missing the HTML_Table package, the includes are passive with @ so wont spit out an error.Isn't it a bug ? Shouldn't it be require_once() instead of include_once() in Structures_DataGrid_Renderer::setRenderer() ?