2017 © Pedro Peláez
 

yii2-extension yii2-models

Yii2 models library

image

demmonico/yii2-models

Yii2 models library

  • Monday, August 22, 2016
  • by demmonico
  • Repository
  • 1 Watchers
  • 0 Stars
  • 118 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

Yii2 models library

Description

Yii2 models library which used in web-application development., (*1)

Composition

ActiveRecord

ActiveRecord model overload parent \yii\db\ActiveRecord. This add features: - sanitize rules (see https://github.com/demmonico/yii2-behaviors) - TimestampBehavior for autocomplete create and update date fields if they exists in any child model - autocollect model saving errors at application logs., (*2)

Usage:
class AnyModel extends \demmonico\models\ActiveRecord {...}

Model

Model model overload parent \yii\base\Model. This add features: - sanitize rules (see https://github.com/demmonico/yii2-behaviors) - perform ajax validation method (see https://github.com/demmonico/yii2-traits)., (*3)

So sanitize rule can inherits by any form., (*4)

Usage:

in model, (*5)

class AnyForm extends \demmonico\models\Model {...}

in controller use ajax validation, (*6)

if (!is_null($validate = $model->performAjaxValidation()))
            return $validate;

The Versions

22/08 2016

dev-master

9999999-dev https://github.com/demmonico/yii2-models

Yii2 models library

  Sources   Download

MIT

The Requires

 

by Dmitry demmonico

component extension yii2 model yii

22/08 2016

v1.0.0

1.0.0.0 https://github.com/demmonico/yii2-models

Yii2 models library

  Sources   Download

MIT

The Requires

 

by Dmitry demmonico

component extension yii2 model yii