Welcome Guest, Not a member yet? Register   Sign In
Super Object
#1

[eluser]Popcorn[/eluser]
Hi,

I have been using PHP for a number of years now and understand a good amount of OOP (Interfaces, Design Patterns and what not).

I wanted to understand how the Super Object class in CodeIgniter works. I know it uses a Singleton design pattern to return an object, but I don't quite understand how the other classes make use of this, since all clases don't have this implementation?

I think the database classes, libraries are referenced to the super object and are all accesible from that? I'm not sure.

If someone could provide a small example that would be fantastic.

Kind Regards,
-Mathew


Messages In This Thread
Super Object - by El Forum - 04-14-2008, 07:08 AM
Super Object - by El Forum - 04-14-2008, 07:11 AM
Super Object - by El Forum - 04-14-2008, 07:18 AM
Super Object - by El Forum - 04-14-2008, 08:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB