abdualiym/yii2-text

Yii2 text extension

Installs: 137

Dependents: 1

Suggesters: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension


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