Welcome Guest, Not a member yet? Register   Sign In
Route using database information
#17

[eluser]WanWizard[/eluser]
[quote author="Aken" date="1226036925"]I'm confused. This method seems like it's just creating a bunch of routes files. The user would then have to go in and create all the controllers and such for all of these, and such giving the user MORE work to do than normal.[/quote]
It is. And it is meant to be. Your site is quite different from what I want to achieve. My content-tree is like a huge site-map of a website, stored in the database. The administrator can assign everything he wants to any entry of that side map.

For example: I have a controller /system/application/controllers/rbac/users.php. One admin could plug this into his tree at http://www.site1.com/admin/users, while a second admin could plug it in at http://www.site2.com/system/management/users.

So code is needed to check the URI segments against the tree in the database. If the path is found, the name of the object to load is returned (in this case controllers/users.php) which should then be loaded and called.

The core system would come with dozens of ready made controllers (from forums to blogs to albums to you name it), and the option to create static HTML pages which can be plugged into the tree as well. Besides that, my system is used as a framework for corporate sites as well, who will make their own controllers based on their requirements, which will simply slot into this system as installable modules.


Messages In This Thread
Route using database information - by El Forum - 11-06-2008, 10:49 AM
Route using database information - by El Forum - 11-06-2008, 02:43 PM
Route using database information - by El Forum - 11-06-2008, 03:13 PM
Route using database information - by El Forum - 11-06-2008, 04:20 PM
Route using database information - by El Forum - 11-06-2008, 04:32 PM
Route using database information - by El Forum - 11-06-2008, 04:58 PM
Route using database information - by El Forum - 11-06-2008, 04:59 PM
Route using database information - by El Forum - 11-06-2008, 05:01 PM
Route using database information - by El Forum - 11-06-2008, 05:02 PM
Route using database information - by El Forum - 11-06-2008, 05:29 PM
Route using database information - by El Forum - 11-06-2008, 05:33 PM
Route using database information - by El Forum - 11-06-2008, 05:48 PM
Route using database information - by El Forum - 11-06-2008, 05:48 PM
Route using database information - by El Forum - 11-06-2008, 05:51 PM
Route using database information - by El Forum - 11-06-2008, 05:55 PM
Route using database information - by El Forum - 11-06-2008, 06:04 PM
Route using database information - by El Forum - 11-06-2008, 06:08 PM
Route using database information - by El Forum - 11-06-2008, 06:11 PM
Route using database information - by El Forum - 11-06-2008, 06:21 PM
Route using database information - by El Forum - 11-06-2008, 06:32 PM
Route using database information - by El Forum - 11-06-2008, 06:46 PM
Route using database information - by El Forum - 11-06-2008, 06:57 PM
Route using database information - by El Forum - 11-07-2008, 04:27 AM
Route using database information - by El Forum - 11-07-2008, 01:46 PM
Route using database information - by El Forum - 01-28-2009, 05:13 PM
Route using database information - by El Forum - 02-06-2009, 12:31 AM
Route using database information - by El Forum - 05-13-2009, 02:33 AM
Route using database information - by El Forum - 05-13-2009, 03:14 AM
Route using database information - by El Forum - 05-13-2009, 03:24 AM
Route using database information - by El Forum - 05-14-2009, 03:54 AM
Route using database information - by El Forum - 05-26-2009, 10:06 AM
Route using database information - by El Forum - 05-27-2009, 03:13 AM
Route using database information - by El Forum - 05-27-2009, 04:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB