black-lamp / yii2-locale
Yii2 url manager with supporting multi languages.
Installs: 651
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: >=2.0.4
README
'components' => [ ... 'urlManager' => [ 'class' => 'bl\locale\UrlManager', languageProvider' => [ 'class' => 'bl\locale\provider\DbLanguageProvider', 'db' => 'db2', 'table' => 'language', 'localeField' => 'lang_id', 'languageCondition' => ['active' => true], ], 'lowerCase' => true, 'useShortSyntax' => true, 'languageKey' => 'language', 'showDefault' => false, ], ]