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

[eluser]neillyons.co[/eluser]
@clooner Not sure if you arrived at this forum topic directly or through my more recent post. There I talk about including a cache file in the routes.php file similar to what your describing. Although the cache file is not created when you access a certain controller but whenever an insert/update/delete operation is performed on the route model.

With your solution I think there might be an issue with lag time. For example, say I have just created an article on my website. It has CodeIgniter's default route of articles/get/1 and an alias of that route like so articles/my-example-article.

I'm assuming your updating your cache file on a cron once a day. So the time between the article being created and the cron being run that route (articles/my-example-article) will produce a 404 error.

Does that make sense?


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