Код: Выделить всё
'behaviors'=> ['class'=>'common\behaviors\InitBehavior'],
Код: Выделить всё
'behaviors'=> ['class'=>'common\behaviors\InitBehavior'],
Код: Выделить всё
[
'property' => 'value',
'as behaviorName' => ['class' => 'Namespace\Behavior'],
'on eventName' => function () {},
]
Код: Выделить всё
'on beforeRequest' => function () {
echo 'hello';
exit();
},