2017 © Pedro Peláez
 

yii2-extension yii2-request

Ecso Yii2-Request && Yii2-UrlManager.

image

developer-av/yii2-request

Ecso Yii2-Request && Yii2-UrlManager.

  • Tuesday, May 24, 2016
  • by developer-av
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Duplicate url redirect && language in url Extension for Yii 2

Total Downloads License, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require developer-av/yii2-request

or add, (*4)

"developer-av/yii2-request": "*"

to the require section of your composer.json., (*5)

Usage

To use this extension, simply add the following code in your application configuration:, (*6)

return [
    //....
    'components' => [
        'request' => [
            'class' => 'developerav\request\Request',
            'cookieValidationKey' => '************,
            'languages' => [
                'en' => 'en-US',//default language
                'ru' => 'ru-RU',
            ]
        ],
        'urlManager' => [
            'class' => 'developerav\request\UrlManager',
            'withoutWww' => true, // 301 redirect from www.exemple.com -> exemple.com
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
            ],
        ],
    ],
];

Generate Url:, (*7)

Html::a('test', ['', 'lang_id' => 'ru'])

The Versions

24/05 2016

dev-master

9999999-dev

Ecso Yii2-Request && Yii2-UrlManager.

  Sources   Download

MIT

The Requires

 

by Alex Vodolazhchenko

language yii2 request urlmanager ecso duplicate

24/05 2016

1.0.1

1.0.1.0

Ecso Yii2-Request && Yii2-UrlManager.

  Sources   Download

MIT

The Requires

 

by Alex Vodolazhchenko

language yii2 request urlmanager ecso duplicate

04/05 2016

1.0.0

1.0.0.0

Ecso Yii2-Request && Yii2-UrlManager.

  Sources   Download

MIT

The Requires

 

by Alex Vodolazhchenko

language yii2 request urlmanager ecso duplicate