Blame view

frontend/controllers/PackageController.php 520 Bytes
6fabfc65   Anastasia   - social links
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php
      /**
       * Created by PhpStorm.
       * User: stes
       * Date: 01.06.18
       * Time: 12:20
       */
      
      namespace frontend\controllers;
      
      use common\models\Package;
      use yii\web\Controller;
  
      class PackageController extends Controller
      {
          public function actionView($id){
              $package = Package::find()->with('language')->where(['id' => $id])->one();
              
              return $this->render('view', [
                 'package' => $package
              ]);
          }
      }