2017 © Pedro Peláez
 

yii2-extension yii2-models

Yii2 models library

image

inspirenmy/yii2-models

Yii2 models library

  • Thursday, September 21, 2017
  • by inspirenmy
  • Repository
  • 0 Watchers
  • 0 Stars
  • 570 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 51 % 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/inspirenmy/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 \inspirenmy\models\ActiveRecord {...}

Model

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

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

Usage:

in model, (*5)

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

in controller use ajax validation, (*6)

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

The Versions

21/09 2017

dev-master

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

Yii2 models library

  Sources   Download

MIT

The Requires

 

by Dmitry inspirenmy

component extension yii2 model yii

21/09 2017

v1.0.1

1.0.1.0 https://github.com/inspirenmy/yii2-models

Yii2 models library

  Sources   Download

MIT

The Requires

 

by Dmitry inspirenmy

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