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

15 lines
276 B
PHP
Raw Normal View History

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