ContactForm

Extends\CFormModel

ContactForm class.

ContactForm is the data structure for keeping contact form data. It is used by the 'contact' action of 'SiteController'.

package

Default

Methods

Declares customized attribute labels.

attributeLabels()

If not declared here, an attribute would have a label that is the same as its name with the first letter in upper case.

Declares the validation rules.

rules()

Properties

name

name :

Type(s)

email

email :

Type(s)

subject

subject :

Type(s)

body

body :

Type(s)

verifyCode

verifyCode :

Type(s)