Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
Experts Most Trusted Topic
how to avoid using php global objects using -'php,global'
how to avoid using php global objects ¬†using -'php,global'
I'm currently creating blog system, which I hope to turn into a full CMS in the future.
There are two classes/objects that would be useful to have global access to (the mysqli database connection and a custom class which checks whether a user is logged in).
I am looking for a way to do this without using global objects, and if possible, not passing the objects to each function every time they are called.
Sep 7, 2015
to add a comment.
Related Hot Questions
Government Jobs Opening