Re: Using a class inside of a class

From: Date: Sat, 13 Dec 2008 03:25:10 +0000
Subject: Re: Using a class inside of a class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284573@lists.php.net to get a copy of this message
On Fri, 2008-12-12 at 13:21 -0800, Richard Kurth wrote: > Can I use another class inside of a function in a class > > > this function process_queue below is inside of a class called class mailer > I want to use the phpMailer class inside of this function so I can send > email using smtp. > Can this be done and is there any information out there on how to do this Should be simple enough. Make sure you've included the file that holds the phpMailer class (and any dependencies it may have) then just instantiate an instance of the class... or am I missing the oint of the question? Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#284573) next »