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

[eluser]WanWizard[/eluser]
I don't intend to make any changes to the core code, that would potentially mean complex merge operations when CI gets updated. I'd like to stay away from that.

I quite like the idea of generating a new config/route.php after an update of the content tree, although I have to see how that works out, with hundreds of one-to-one mappings in $route (and it requires the webserver user to have write access to a file in the docroot, which is not really best practice as well).

I'm not to troubled with two database connections, I tend to use persistent connections anyway. I was sort of hoping that I could utilize some of the CI power, instead of coding everything. That means lots of code, and/or lose database portability (because I can't use CI's abstraction layer).

Taking that into account, probably the best option is to route all requests through my own front controller. That will have access to all CI classes, which makes the database part a lot easier, but it means I have to duplicate the code that loads the final controller and calls the appropriate method, from codeigniter.php.

hmmm... decisions, decisions...


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