Skip to content

Instantly share code, notes, and snippets.

@thyseus
Created July 26, 2017 12:28
Show Gist options
  • Save thyseus/94b8d22d45c5956fc37ef515d527722e to your computer and use it in GitHub Desktop.
Save thyseus/94b8d22d45c5956fc37ef515d527722e to your computer and use it in GitHub Desktop.
```php
if ($attribute) {
if($attribute->type != '') {
$super[Yii::t('app', $attribute->type)][] = Yii::t('app', $attribute->title);
} else {
$super[Yii::t('app', 'Allgemein')][] = Yii::t('app', $attribute->title);
}
}
@thyseus
Copy link
Author

thyseus commented Jul 26, 2017

if ($attribute) {
               if($attribute->type != '') {
                   $super[Yii::t('app', $attribute->type)][] = Yii::t('app', $attribute->title);
               } else {
                   $super[Yii::t('app', 'Allgemein')][] = Yii::t('app', $attribute->title);
               }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment