Welcome Guest, Not a member yet? Register   Sign In
database before routes
#1

Im building a multisite where each site setting is loaded from the databse based on the subdomain or domain . this works great

However : how would point different application folders for each site.

Lets say site 1 is using version 1 of the application
Lets site 2 is using version 2 

The only idea I came up is to put the MVC and libraries in a version named folder. 
And use a constant for the version named folder in routes.php
But it seems the routes.php is loaded before database.php
And database.php is the place where I can point which site uses which version

Any ideas?
Reply


Messages In This Thread
database before routes - by ponzo - 03-07-2017, 01:32 AM
RE: database before routes - by InsiteFX - 03-07-2017, 05:02 AM
RE: database before routes - by ponzo - 03-07-2017, 05:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB