Modular portal based on controller names?

#3
[eluser]Craig A Rodway[/eluser]
Consider this example table structure, it might be close to what you're after if you go down the DB route...

Code:
id INT    /* auto-increment page ID */
parent INT    /* parent page, NULL if at root level */
name VARCHAR    /* what's visible to the user */
url VARCHAR    /* use site_url() on these in your code */

1    NULL    Dashboard      dashboard
2    NULL    Users          users
3    NULL    Resources      resources
4    2       Insert User    users/insert
5    2       Manage User    users/manage
6    3       Find resource  resources/find

You can see that IDs 4,5 belong to the Users page and that ID 6 belongs to the Resources section. An SQL query and some clever array looping should give you what you're after.


Messages In This Thread
Modular portal based on controller names? - by El Forum - 01-14-2008, 08:26 PM
Modular portal based on controller names? - by El Forum - 01-14-2008, 10:10 PM
Modular portal based on controller names? - by El Forum - 01-15-2008, 03:25 AM
Modular portal based on controller names? - by El Forum - 01-15-2008, 03:41 AM
Modular portal based on controller names? - by El Forum - 01-15-2008, 07:47 AM
Modular portal based on controller names? - by El Forum - 01-15-2008, 10:46 AM
Modular portal based on controller names? - by El Forum - 01-15-2008, 11:55 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.