2017 © Pedro Peláez
 

yii2-extension yii2-behaviors

Yii2 behaviors library

image

demmonico/yii2-behaviors

Yii2 behaviors 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 behaviors library

Description

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

Composition

SanitizeBehavior

Sanitize model string attributes (all string attributes by default). You can exclude some fields or allow some html tags., (*2)

Usage:
// in model ActiveRecord
public function behaviors()
{
    return [
        SanitizeBehavior::className(),
    ];
}

TimestampBehavior

Extends standard yii class to use with not required attributes., (*3)

Usage:
// in model ActiveRecord
public function behaviors()
{
    return [
        TimestampBehavior::className(),
    ];
}

The Versions

22/08 2016

dev-master

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

Yii2 behaviors library

  Sources   Download

MIT

The Requires

 

by Dmitry demmonico

component extension yii2 yii behavior

22/08 2016

1.0.0

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

Yii2 behaviors library

  Sources   Download

MIT

The Requires

 

by Dmitry demmonico

component extension yii2 yii behavior