Re: [PHP] OOP, Out of Scope Issue

2004-11-07 Thread Jonathan Chum
.by-reference > > Hope it will be helpful. > > > zareef Ahmed > > -Original Message- > From: Jonathan Chum [mailto:[EMAIL PROTECTED] > Sent: Monday, November 08, 2004 9:52 AM > To: [EMAIL PROTECTED] > Subject: [PHP] OOP, Out of Scope Issue > > > I hav

RE: [PHP] OOP, Out of Scope Issue

2004-11-07 Thread Zareef Ahmed
PROTECTED] Subject: [PHP] OOP, Out of Scope Issue I have a class called FrontEnd which extends a TemplateManager class. The purpose of the TemplateManager class is to initate Smarty. So my FrontEnd constructor looks like this: function FrontEnd() { $db = new DatabaseConnection(); $this->

[PHP] OOP, Out of Scope Issue

2004-11-07 Thread Jonathan Chum
I have a class called FrontEnd which extends a TemplateManager class. The purpose of the TemplateManager class is to initate Smarty. So my FrontEnd constructor looks like this: function FrontEnd() { $db = new DatabaseConnection(); $this->db = $db->initDatabase(); $this->sm = $this->