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?