Nguyen Duc Thuan's Homepage » PHP »

Displaying Data From Arrays in Sortable Grids

Sometimes, you want to automatically render data from arrays, database queries… in the grids but feeling lazy to manually write HTML line by line. I’ve written a class named ‘Fete_ViewControl_DataGrid’ which can help you do that. This class also supports sorting, it can be easily integrated with other frameworks or your existing codes.

The class and examples have been uploaded to PHPClasses.org at http://www.phpclasses.org/browse/package/5476.html. I will update every further change on that repository.

I’ve received some emails that suggest paging feature. I’ll be trying to find a proper solution. Thank you all for your feedbacks :)

Related Posts

No related posts.

Share and enjoy:
Design BumpDeliciousDiggFacebookDesign FloatMixxRedditStumbleUponTechnoratiTwitter

One Response to “Displaying Data From Arrays in Sortable Grids”

  1. Waldson says:

    Awesome class. I’m making my version of this class. Tnks for sharing this with us. In your example you remove the user_id field and use this in href of edit and delete link but it is not parsed.

    Tnks again.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>