• PHP-CodeIgniter – Tips for a listing library

    Ganesh Member

    I’m currently making a listing library in my codeigniter application, but I’m wondering if anyone knows if something like this already exists.

    The idea is to make something like this: (the grid-list toggle buttons in the top right corner)

    http://stackexchange.com/sites?view=grid

    and make it generic, so I can use it on pages where I list data, like Users, Movies, Photogallery, …

    This is what I currently have, the gridview function:

    http://pastebin[dot]com/ArBNaDHQ

    The part that I’m really wondering about is how to keep the data in some sort of cache, so that it shouldn’t be loaded from the database every time the user changes the view on a page. Again, I’m using Codeigniter, so if you know of anything specific in codeigniter to solve this, tell me.

    Currently I’m using my session table’s userdata column (that already stores cache stuff).

    Or if you might have any tips making it better, tell me too!

    Any tips and idea’s are welcome!

Viewing 0 reply threads
  • You must be logged in to reply to this topic.
en_USEnglish