Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPied.com:
Proposal for Structures_DataGrid Column Formatter
Sep 06, 2005 @ 10:49:23

On PHPied.com, there's a new post with information about a PEAR proposal for a "PEAR::Structures_DataGrid column formatter".

This posting outlines a proposal for an addition to the PEAR package Structures_DataGrid. More specifically it concerns the formatter method of the Structures_DataGrid_Column class.

I was trying to use the package to create a listing of database data (a list of users actually) , with a link to delete a record next to each data row. So I needed a custom column that doesn't exist in in the database and in order to create it I needed to use a callback function as a formatter of the column.

He details what he was attempting and ultimately finds that he just needed another block of code to get things done, thus his class and proposal. It's a simple thing that you'd of think would have been included in something with "grid" in the name...and now, with the inclusion of his code, it could...

tagged:

Link:


Trending Topics: