yii2-netdisk/models/EntryForm.php
Chenx221 413d60f3f4
整理代码&清洁工作
移除了一些来自模板的代码
2024-03-17 15:37:13 +08:00

18 lines
343 B
PHP

<?php
namespace app\models;
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
];
}
}