public function behaviors() { $behaviors = []; $behaviors['layout'] = ['class' => ClientUserLayout::className(), 'only' => ['list', 'create']]; $behaviors['manage-layout'] = ['class' => ClientUserManageLayout::className(), 'except' => ['list', 'create']]; return $behaviors; }
public static function getLeftSubTabs(array $active = []) { $tabs = [['label' => Yii::t('client_layout', ':user_view'), 'url' => Url::to(['client-user/view'] + self::getParams()), 'active' => self::getActive($active, ClientUserManageLayout::view())], ['label' => Yii::t('client_layout', ':user_info'), 'url' => Url::to(['client-user/info'] + $_GET), 'active' => self::getActive($active, ClientUserManageLayout::info())], ['label' => Yii::t('client_layout', ':user_beacons'), 'url' => Url::to(['client-user/beacons'] + self::getParams()), 'active' => self::getActive($active, ClientUserManageLayout::beacons())]]; return $tabs; }