a global config variable that can be read from everywhere
Posted on 2014-02-17
I have procedural code mixed with object oriented code
Computes my hours and shows emails so I can present to client
so I want to work on code at the same time to make more re-usable
but there are many limitations
I have two separate table names for two companies, because I do not want to mix data.
So I would different php file for each company.
So I have to find and replace the tablename.
Maybe a config variable would be easier.
How to have a config variable that can be in object oriented classes and procedural functions.
I know that globals are bad but my old code is so disorganized.