Re: Datagrid and DataObject and performance
| From: | Andrew Nagy | Date: | Mon, 13 Dec 2004 22:40:23 +0000 |
| Subject: | Re: Datagrid and DataObject and performance | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16213@lists.php.net to get a copy of this message | ||
cron@odi.com.br wrote:
Hello Again, After look at the examples just find to be allot easier to just bind the data and let DataGrid do the work however I have this code and it does not work: $obj_db = DB_DataObject::factory('acesso'); $obj_db->find(); $dg = new Structures_DataGrid(4); $dg->bind($obj_db); $dg->render();Your problem is calling the find method before the bind. Do not do this as DataGrid will call the find for you so that you can do sorting and paging. I apologize for any incorrect documentation, im working on it as we speak. I will look into the Source class ... I think it is called S_DG_DataSource but the filename is Source.php, so there may be a naming crisis here :) The DataObject source driver should be ready to go, I was doing some heavy testing on it today and I am 99% sure I have worked out all of the bugs, please get the latest from CVS and let me know if you find any bugs Thanks for the help and enjoy! Andrew