abdualiym/yii2-language

Yii2 language extension

1.0 2022-06-30 09:00 UTC

This package is auto-updated.

Last update: 2022-07-30 09:19:00 UTC


README

The extension uses with yii2-cms, yii2-slider, yii2-blocks extensions.

Installation

  • Install with composer:
composer require abdualiym/yii2-language "^1.0"

###Examples

get photo url:

abdualiym\language\Language::getPhotoUrl($object, 'profile');

get attribute value by app language:

abdualiym\language\Language::get($object, 'title');