Re: [PHP] Re: Class/Objects

2002-05-31 Thread Gerard Samuel
The first example was a mistake. The second is a correct example. I just wasn't sure on the proper format $this->that->foo($bar), if it is technically correct... Thanks Michael Davey wrote: >I believe so - but why are you passing a the object a reference to itself? > > > >>$bar->db_obj->run

[PHP] Re: Class/Objects

2002-05-31 Thread Michael Davey
I believe so - but why are you passing a the object a reference to itself? > $bar->db_obj->run_some_code($bar); > $bar->tpl_obj->do_this_for_me($bar); If you need to access parts of the object from within, use the $this-> pointer. > It works but was wondering if its 'legal' to use it like this