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

Revision #130 has been created by rackycz on Oct 4, 2019, 12:03:10 PM with the memo:

contact
« previous (#129) next (#131) »

Changes

Title unchanged

Yii v2 snippet guide

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

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

```php
public $verifyCode;
// ...
['verifyCode', 'captcha'],
[...]
7 0
4 followers
Viewed: 274 955 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history