Re: Structures_DataGrid BC issue
| From: | Justin Patrin | Date: | Tue, 09 May 2006 17:27:11 +0000 |
| Subject: | Re: Structures_DataGrid BC issue | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24027@lists.php.net to get a copy of this message | ||
On 5/9/06, PitesaJ@peteramayer.com <PitesaJ@peteramayer.com> wrote:
I am currenty using Structures_DataGrid-0.5.3 in numerous scripts. Yesterday I upgraded to 0.6.3 and although I received no error, the DataGrid did not work. The example for 0.5.3 states: // Define New DataGrid with a limit of 3 records if (isset($_GET['page'])) {You have to change it in all of your scripts. There was a change to SDG which needed this change in the instantiation. SDG *is* still beta, so it's still allowed to break BC (although the & change is one of the largest that I am aware of). -- Justin Patrin$dg = new Structures_DataGrid(4, $_GET['page']);} else {$dg = new Structures_DataGrid(4);} For 0.6.3 it states: // Define New DataGrid with a limit of 3 records $dg =& new Structures_DataGrid(4); The only difference being the &, which when added to existing script, works correctly. Question. Am I missing something else, or am I going to have to change this in all of my scripts (which is a lot) ?