Blame view

frontend/components/StaticInfo.php 373 Bytes
c7f222e2   Artem   first
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <?php
  namespace frontend\components;
  use frontend\models\Page;
  use yii\base\Widget;
  use yii\helpers\Url;
  
  class StaticInfo extends Widget
  {
      public  $page;
  
      public function init(){
          parent::init();
  
      }
  
  
      public function run()
      {
          $model = new Page();
          $page = $model->getPageTranslit($this->page);
  
          return $page->body;
      }
  
  }