Download the PHP package simsol/yii2-multilang without Composer
On this page you can find all versions of the php package simsol/yii2-multilang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download simsol/yii2-multilang
More information about simsol/yii2-multilang
Files in simsol/yii2-multilang
Download simsol/yii2-multilang
More information about simsol/yii2-multilang
Files in simsol/yii2-multilang
Vendor simsol
Package yii2-multilang
Short Description Extensions for multi languages in objects
License
Package yii2-multilang
Short Description Extensions for multi languages in objects
License
Please rate this library. Is it a good library?
Informations about the package yii2-multilang
This is a Guide for using MultiLang Module
1. Install
2. Init
Module declaration and config for languages to be stored:
3. Run Migrations
4. Usage
Please follow below steps to set up and use this extension.
a. In model
-
Add property to your model class.
-
Add rule for property.
-
Modify and add this line:
This will save translation for current model.
b. In form
-
Add this widget for attributes that you want to provide translation to your create or update form.
- Available config:
attributeLabel
: Optional. In case you want to use another name for model attribute, default is model's attribute name.attributeToSave
: Optional. In case you want to save with a different attribute, default is model's attribute. Useful when working with custom model.attributeToLoad
: Optional. In case you want to load saved translation value on edit with a different attribute, default is model's attribute. Useful when working with custom model.inputType
: Optional. Default is text input, available options:- Text Input: MultiLangFieldsWidget::TYPE_TEXT_INPUT
- Textarea: MultiLangFieldsWidget::TYPE_TEXTAREA
c. Query translations
- : Required. Model to load translations.
- : Optional. Translations for specified attribute will be queried if provided.
- : Optional. In case the model id is different from defined $model, useful when working with custom model.
- : Optional. In case model class name is different from provided model. For example: and
-
: Optional. If passed, value will be used to query for specified language.
- Query results: Result might be varied depends on provided parameters. See examples below:
All versions of yii2-multilang with dependencies
PHP Build Version
Package Version
The package simsol/yii2-multilang contains the following files
Loading the files please wait ....