Is it possible with Phalcon to register a database connection based on the logged in user.
E.g. System will host multiple accounts, each account will have its own database.
All users credentials are saved in the main database, user logs in via main database, once logged in, their account specific database credentials should be loaded for the secondary connection.
So in essence, I guess I am looking for a way to register the database service from a controller?
I hope this is clear. Any help would be appreciated, thanks.