Difference between #128 and #129 of
Yii v2 snippet guide

Revision #129 has been created by rackycz on Oct 4, 2019, 12:00:30 PM with the memo:

contact
« previous (#128) next (#130) »

Changes

Title unchanged

Yii v2 snippet guide

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
$model = new Contact();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
// ...
```
- Open the new contact model and add one attribute, 2 rules

 
```php public $verifyCode; // ...   ['verifyCode', 'captcha'],   ['email', 'email'],

// and translation for Captcha
'verifyCode' => Yii::t('app', 'Verification'),
```
[...]
2 0
1 follower
Viewed: 11 654 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: 29 days ago
Update Article

Revisions

View all history