yii2-extension yii2-behaviors
Yii2 behaviors library
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
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(),
];
}