Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database connection handy including #24

Open
NetLancer opened this issue Sep 18, 2019 · 0 comments
Open

Database connection handy including #24

NetLancer opened this issue Sep 18, 2019 · 0 comments

Comments

@NetLancer
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant