You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
Hi there! I've been looking for a convenient method of including $db_connection just whenever needed and i've come up so far with confinement of DNS in predefined class.
Then each time i need it do: $f3->call('DBClass::connect'), but still it seems to me somewhat awkward.
Now i see in the project's index.php file:
// database connection used by app [lines 35-36]
$dbConfig = $f3->get('db'); -which seems handy enough,
but keep on guessing what it actually referencing so i can make use of.
Pardon my dummy question, but i don't see the other way to post a question of this sort, hope for simple answer :)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there! I've been looking for a convenient method of including $db_connection just whenever needed and i've come up so far with confinement of DNS in predefined class.
Then each time i need it do: $f3->call('DBClass::connect'), but still it seems to me somewhat awkward.
Now i see in the project's index.php file:
// database connection used by app [lines 35-36]
$dbConfig = $f3->get('db'); -which seems handy enough,
but keep on guessing what it actually referencing so i can make use of.
Pardon my dummy question, but i don't see the other way to post a question of this sort, hope for simple answer :)
The text was updated successfully, but these errors were encountered: