Same HTML files but different database connections for subdomains

Hi Attila,

Nice project!

Currently the connect files use static values as those are more common.

However you can try using expressions like:

{{some_variable}}

And especially point to environment variables.
I think it was $_ENV

So something like:

{{$_ENV[‘user_database’]}}

Etc for the different user settings.

So enter those instead of static values. And make sure the right variables get set.

You also use $_SESSION from php session variables or $_SERVER

Of course when you save such a db connection the test will fail, but you can still choose to save it.

Let me know if that works.

I will add some more data pickers so you can choose the expressions more easily in the next updates.

5 Likes