![]() |
Best way to manage your pages - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Best way to manage your pages (/showthread.php?tid=7038) |
Best way to manage your pages - El Forum - 03-21-2008 [eluser]Unknown[/eluser] Just find out about CodeIgnitor and it looks very cool. After a lot of 'old school' PHP developing I want to try building a CMS with CI. But I'm stuck at the paging system. The thing I want is this: Code: -> First page The database model works with parentid's en position id's. Is there any simple way to get the pages from the database, put them in an array, pass them trough to the view and prints the whole array? I'm using this for an admin area. Best way to manage your pages - El Forum - 03-21-2008 [eluser]danoph[/eluser] http://ellislab.com/forums/viewthread/74596/ Best way to manage your pages - El Forum - 03-21-2008 [eluser]Unknown[/eluser] Thanks! I saw that topic yesterday but I could't find it today! Best way to manage your pages - El Forum - 03-22-2008 [eluser]m4rw3r[/eluser] The adjacency list model can be slow, if you for example want to fetch a node deep in the tree or if you want to fetch the parents of a node, so I recommend using the Nested Sets approach: http://www.sitepoint.com/article/hierarchical-data-database/2 discussion thread on forum and Thunder UK's model: http://ellislab.com/forums/viewthread/47671/ or my model: http://ellislab.com/forums/viewthread/74114/ |