abdualiym / yii2-text
Yii2 text extension
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 151
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
Requires (Dev)
- phpunit/phpunit: 4.*
README
The extension allows build multi language slider.
Installation
- Install with composer:
composer require abdualiym/yii2-text
- After composer install run console command for create tables:
php yii migrate/up --migrationPath=@vendor/abdualiym/yii2-text/migrations
- add to backend config file:
'controllerMap' => [ 'categories' => [ 'class' => 'abdualiym\text\controllers\CategoryController', ], 'text' => [ 'class' => 'abdualiym\text\controllers\TextController', ], ],
- add to common config file:
'i18n' => [ 'translations' => [ 'text' => [ 'class' => 'yii\i18n\PhpMessageSource', 'basePath' => '@vendor/abdualiym/yii2-text/messages', 'sourceLanguage' => 'en', 'fileMap' => [ 'text' => 'text.php', ], ], ] ],