Re: oo design question - how to avoid a factory
| From: | Andrew Nagy | Date: | Tue, 21 Dec 2004 15:40:39 +0000 |
| Subject: | Re: oo design question - how to avoid a factory | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-35198@lists.php.net to get a copy of this message | ||
Andrew S. Nagy wrote:
After playing around more with the example on the php site: http://www.php.net/manual/en/language.oop.newref.php I tried doing this with out the factory: $dg =& new Structures_DataGrid(20); And everything seems to work except for the data, but i think that is a bug somewhere because I am getting the paging data before calling any render methods.Yep, it was a bug! Instantiate SDG as a reference allows everything to work. I don't totally understand it at the moment, but it works! I am going to check the code into CVS, can you test it on PHP5? Andrew