dev-master
9999999-devYii2 application tools
BSD-3-Clause
The Requires
by Misbahul Munir
yii2 event state
1.0
1.0.0.0Yii2 application tools
BSD-3-Clause
The Requires
by Misbahul Munir
yii2 event state
Yii2 application tools
Yii2 Tools, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require deesoft/yii2-tools "~1.0"
or add, (*4)
"deesoft/yii2-tools": "~1.0"
to the require section of your composer.json
file., (*5)
Define event handler in self class., (*6)
class User extends ActiveRecord { public function onBeforeSave($event) { // execute at event beforeSave // do someting } public function behaviors() { return [ 'dee\tools\AutoHandlerBehavior', ]; } }
Save information of client(browser)., (*7)
// config 'components' => [ ... 'profile' => 'dee\tools\State', ]
// this information is unique per client. Yii::$app->profile->address = 'Jl. Buntu No 3426 Lamongan'; echo Yii::$app->profile->address;
Yii2 application tools
BSD-3-Clause
yii2 event state
Yii2 application tools
BSD-3-Clause
yii2 event state