Ok here is the situation I have a basic class called email
class Email{
public $email_subject;
public $email_to_address;
public $email_from_address;
public $email_message;
public function send_email(){
$this->mail($this->email_to_address, $this->email_subject, $this->email_message, $this->email_from_address);
}
}
Works perfect by itself. Than when I try to extend it I get en error in the first line.
class its_Email extends Email{
public $email_from_address = "From: Mopardude's Site<myemail@somedomain.com>";
public function __construct(){
$this->email_from_address = $email_from_address;
}
}
Both classes are in the same class directory which are auto included by a script at startup. At first I thought the extend class was being instancitiated before email was included, but really that is not possible if both classes are included before the call to them is ever made right? The funny thing is I have a similar class that is extended the same way and that work perfectly. Any ideas what I did wrong here?