Skip to content

balex777/yii-dynamic-model

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DynamicModel for Yii1

Latest Version Software License Total Downloads

DynamicModel is a model class primarily used to support ad hoc data validation. The typical usage of DynamicModel is as follows,

  $model = new DynamicModel(
      ['name', 'email'],
      [
         ['name, email', 'length', 'max' => 50],
      ]
  );
  if ($model->hasErrors()) {
      // validation fails
  } else {
      // validation succeeds
  }

About

Dynamic model for Yii1

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%