abdualiym/yii2-text

Yii2 text extension

Installs: 151

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.1.4 2018-09-19 13:19 UTC

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',
            ],
        ],
    ]
],