yii2-netdisk/models/EntryForm.php

19 lines
352 B
PHP
Raw Normal View History

2024-02-09 12:15:09 +08:00
<?php
namespace app\models;
use Yii;
use yii\base\Model;
class EntryForm extends Model
{
public $name;
public $email;
public function rules()
{
return [
[['name', 'email'], 'required'], // both name and email are required
['email', 'email'], // email has to be a valid email address
];
}
}