Blame view

common/components/Request.php 577 Bytes
d8c1a2e0   Yarik   Big commit artbox
1
  <?php

5c2eb7c8   Yarik   Big commit almost...
2
3
4
      namespace common\components;

      

      class Request extends \yii\web\Request

d8c1a2e0   Yarik   Big commit artbox
5
      {

5c2eb7c8   Yarik   Big commit almost...
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
          

          public $web;

          

          public $adminUrl;

          

          public function getBaseUrl()

          {

              return str_replace($this->web, "", parent::getBaseUrl()) . $this->adminUrl;

          }

          

          public function resolvePathInfo()

          {

              if($this->getUrl() === $this->adminUrl) {

                  return "";

              } else {

                  return parent::resolvePathInfo();

              }

d8c1a2e0   Yarik   Big commit artbox
23
          }

5c2eb7c8   Yarik   Big commit almost...
24
      }