Welcome Guest, Not a member yet? Register   Sign In
Database driven routes in CodeIgniter
#3

[eluser]garymardell[/eluser]
Alan, the first connection is opened and then closed again in the routes hook, then a new connection will be opened for the controller, etc. This means there will only be one open at any single time. However it will effect the speed of the application slightly as it has to fetch the routes. Maybe it could cache the routes file somewhere that it gets from the database, then if you update a route, add or delete the cache file will be deleted and rebuilt on the next page load. That would decrease the impact a lot.


Messages In This Thread
Database driven routes in CodeIgniter - by El Forum - 06-28-2009, 10:04 AM
Database driven routes in CodeIgniter - by El Forum - 07-01-2009, 11:42 AM
Database driven routes in CodeIgniter - by El Forum - 07-01-2009, 12:00 PM
Database driven routes in CodeIgniter - by El Forum - 07-01-2009, 12:32 PM
Database driven routes in CodeIgniter - by El Forum - 07-01-2009, 01:41 PM
Database driven routes in CodeIgniter - by El Forum - 07-03-2009, 02:41 PM
Database driven routes in CodeIgniter - by El Forum - 07-03-2009, 03:36 PM
Database driven routes in CodeIgniter - by El Forum - 01-25-2010, 06:30 PM
Database driven routes in CodeIgniter - by El Forum - 02-21-2010, 04:22 AM
Database driven routes in CodeIgniter - by El Forum - 05-15-2010, 04:01 AM
Database driven routes in CodeIgniter - by El Forum - 05-15-2010, 06:29 AM
Database driven routes in CodeIgniter - by El Forum - 05-19-2010, 01:40 PM
Database driven routes in CodeIgniter - by El Forum - 05-20-2010, 02:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB