portal.mkgtu.ru/common/components/Request.php

15 lines
276 B
PHP
Executable File

<?php
namespace common\components;
class Request extends \yii\web\Request
{
public function getReferrer()
{
$_referrer = $this->get('_referrer');
if ($_referrer) {
return $_referrer;
}
return parent::getReferrer();
}
}