Class app\models\ContactForm
Inheritance | app\models\ContactForm » yii\base\Model |
---|
ContactForm is the model behind the contact form.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$body | app\models\ContactForm | ||
app\models\ContactForm | |||
$name | app\models\ContactForm | ||
$subject | app\models\ContactForm | ||
$verifyCode | app\models\ContactForm |
Public Methods
Method | Description | Defined 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
Method Details
public array attributeLabels ( ) | ||
return | array | Customized attribute labels |
---|
Sends an email to the specified email address using the information collected by this model.
public boolean contact ( $email ) | ||
string | The target email address |
|
return | boolean | Whether the model passes validation |
---|
public array rules ( ) | ||
return | array | The validation rules. |
---|