PHP code example of fedornabilkin / yii2-redirect

1. Go to this page and download the library: Download fedornabilkin/yii2-redirect library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

fedornabilkin / yii2-redirect example snippets


'modules' => [
    'redirect' => [
        'class' => fedornabilkin\redirect\Module::class,
        'frontendHost' => 'http://site.ru', // Go to page from admin panel
    ],
],

public function actions()
{
    return [
        'error' => [
            'class' => \fedornabilkin\redirect\actions\ErrorAction::class,
        ],
    ];
}

php composer.phar