Welcome Guest, Not a member yet? Register   Sign In
Gathering database settings globally
#4

[eluser]CrazeD[/eluser]
Okay, please forgive my ignorance of PHP OOP.

How do I access my global objects from within my controller?

For example, my global library is something like
Code:
class Global_lib
{
    function Globals()
    {
        $this->site_theme = 'theme_path';
        $this->user_theme = 'user selected theme';
    }
}

How do I then access those two objects from my controller?


Messages In This Thread
Gathering database settings globally - by El Forum - 09-30-2010, 07:03 PM
Gathering database settings globally - by El Forum - 09-30-2010, 08:16 PM
Gathering database settings globally - by El Forum - 09-30-2010, 08:34 PM
Gathering database settings globally - by El Forum - 09-30-2010, 09:54 PM
Gathering database settings globally - by El Forum - 09-30-2010, 10:18 PM
Gathering database settings globally - by El Forum - 10-01-2010, 12:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB