Welcome Guest, Not a member yet? Register   Sign In
simple PHP class
#7

[eluser]smilie[/eluser]
Hi,

I am tired and getting down on a flew so maybe this is just 'garbage' but:

Code:
public function __construct($msg='',$status='')
    {
             $this->ci =& get_instance(); // If I need CI facilities I presume...
           $this->status  = $status;
         $this->msg      = $msg;
    }

You are correct that construct will be executed upon (auto)load. But with this above, that should take care of you problem...

Or did you mean something else?

Again, tired, sick... need beer and bed :-)

Regards,
Smilie


Messages In This Thread
simple PHP class - by El Forum - 09-08-2010, 09:28 AM
simple PHP class - by El Forum - 09-08-2010, 09:33 AM
simple PHP class - by El Forum - 09-08-2010, 09:46 AM
simple PHP class - by El Forum - 09-08-2010, 09:51 AM
simple PHP class - by El Forum - 09-08-2010, 10:02 AM
simple PHP class - by El Forum - 09-08-2010, 10:05 AM
simple PHP class - by El Forum - 09-08-2010, 10:07 AM
simple PHP class - by El Forum - 09-08-2010, 10:10 AM
simple PHP class - by El Forum - 09-08-2010, 10:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB