您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

36 行
597B

  1. <?php
  2. namespace backend\forms;
  3. use yii\base\Model;
  4. /**
  5. * UploadForm is the model behind the upload form.
  6. */
  7. class ReportPaymentsForm extends Model
  8. {
  9. var $date_start;
  10. var $date_end;
  11. /**
  12. * @return array the validation rules.
  13. */
  14. public function rules()
  15. {
  16. return [
  17. [['date_start', 'date_end'], 'required'],
  18. [['date_start', 'date_end'], 'safe'],
  19. ];
  20. }
  21. public function attributeLabels()
  22. {
  23. return [
  24. 'date_start' => "Date de début",
  25. 'date_end' => "Date de fin"
  26. ];
  27. }
  28. }
  29. ?>