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
contact() Sends an email to the specified email address using the information collected by this model. app\models\ContactForm
rules() 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 array attributeLabels ( )
return array

Customized attribute labels

contact() public method

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

public boolean contact ( $email )
$email string

The target email address

return boolean

Whether the model passes validation

rules() public method

public array rules ( )
return array

The validation rules.