Jump to content

Multi Classes


ghgarcia

Recommended Posts

I must have something wrong with my code I load my normal variables for my application with a class of football. I then load another php file which loads the other class i.e.

 

   require ("mail.inc.php"); // get SMTP information
   $mail = new MyMailer;

 

The application mail.inc.php does the following:

 

require("class.phpmailer.php");
class MyMailer extends PHPMailer {

 

When I attempt to use any variables i.e.

echo $mail->time;

 

nothing is shown.

 

Thanks for your help

 

 

Link to comment
https://forums.phpfreaks.com/topic/64603-multi-classes/#findComment-322981
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.