Class app\models\ContactForm

Inheritanceapp\models\ContactForm » yii\base\Model

ContactForm is the model behind the contact form.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attributeLabels() app\models\ContactForm
rules() app\models\ContactForm
sendEmail() Sends an email to the specified email address using the information collected by this model. app\models\ContactForm

Property Details

$body public property
public $body null
$email public property
public $email null
$name public property
public $name null
$subject public property
public $subject null
$verifyCode public property
public $verifyCode null

Method Details

attributeLabels() public method

public void attributeLabels ( )
rules() public method

public void rules ( )
sendEmail() public method

Sends an email to the specified email address using the information collected by this model.

public boolean sendEmail ( $email )
$email string

The target email address

return boolean

Whether the model passes validation