I am thinking about modifying Zencart so that the same application/presentation layer can be used against multiple databases.
However, I have hit a minor snag.
I do have a potential workaround, but would like to ge feedback from the core developers.
Ideally, I would check a session variable for the database name, if it does not exist I would check the URL for a passed parameter, (and set it for future as a session variable), and as a fallthrough display the database is inaccessible page.
The catch 22 is that the session variables table is stored within the database. This could potentially be changed by having a sessions database which would be hardcoded, but would require moving the autoloading of config.core prior to the inclusion of config.php - which would cause problems - or possibly to create a separate file with the database parameters, to be included after the call to zen_session_start().
Any feedback would be deeply appreciated.




