demmonico / yii2-behaviors
Yii2 behaviors library
Installs: 2 361
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: >5.5.0
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2024-11-20 00:08:26 UTC
README
#Yii2 behaviors library ##Description Yii2 behaviors library which used in web-application development.
##Composition ###SanitizeBehavior
Sanitize model string attributes (all string attributes by default). You can exclude some fields or allow some html tags.
#####Usage:
// in model ActiveRecord public function behaviors() { return [ SanitizeBehavior::className(), ]; }
###TimestampBehavior Extends standard yii class to use with not required attributes.
#####Usage:
// in model ActiveRecord public function behaviors() { return [ TimestampBehavior::className(), ]; }