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
$body null
$email public property
$email null
$name public property
$name null
$subject public property
$subject null
$verifyCode public property
$verifyCode null

Method Details

attributeLabels() public method

void attributeLabels( )
rules() public method

void rules( )
sendEmail() public method

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

boolean sendEmail$email )
$email string

The target email address

return boolean

Whether the model passes validation