yii2-extension yii2-base
The base behaviors, helpers, etc. for the Yii2 framework
yiicod/yii2-base
The base behaviors, helpers, etc. for the Yii2 framework
- Sunday, February 18, 2018
- by lexxorlov
- Repository
- 1 Watchers
- 4 Stars
- 989 Installations
- PHP
- 5 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 8 Versions
- 27 % Grown
The base library for extensions and apps
, (*1)
Installation
Either run, (*2)
php composer.phar require --prefer-dist yiicod/yii2-base "*"
or add, (*3)
"yiicod/yii2-base": "*"
Usage action
- yiicod\base\actions\base\Action. Methods: performAjaxValidation, loadModel
Usage model
/**
* Attributes mapper(Dynamic attr by mapping).
* yiicod\base\models\behaviors\AttributesMapBehavior
* $model->title // But in db it can be title_ext
* $model->alias // But in db it can be slug
*/
[
'class' => 'yiicod\base\models\behaviors\AttributesMapBehavior',
'attributesMap' => [
'fieldTitle' => 'title_ext',
'fieldAlias' => 'slug',
]
],
/**
* HTMLPurify
*/
[
'class' => 'yiicod\base\models\behaviors\XssBehavior',
]
Usage Enum
- Abstract class Enumerable for enum
dev-master
9999999-dev
The base behaviors, helpers, etc. for the Yii2 framework
Sources
Download
MIT
New BSD License
The Requires
1.0.6
1.0.6.0
The base behaviors, helpers, etc. for the Yii2 framework
Sources
Download
MIT
The Requires
1.0.5
1.0.5.0
The base behaviors, helpers, etc. for the Yii2 framework
Sources
Download
New BSD License
The Requires
1.0.4
1.0.4.0
The base behaviors, helpers, etc. for the Yii2 framework
Sources
Download
New BSD License
1.0.3
1.0.3.0
The base behaviors, helpers, etc. for the Yii2 framework
Sources
Download
New BSD License