PHP code example of pendalf89 / yii2-redirect
1. Go to this page and download the library: Download pendalf89/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/ */
pendalf89 / yii2-redirect example snippets
'on beforeRequest' => function() {
Yii::$app->redirect->run();
},
'components' => [
'redirect' => 'pendalf89\redirect\Redirect',
],
php composer.phar