Blame view

frontend/controllers/PostController.php 324 Bytes
4253cbec   root   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  
  namespace frontend\controllers;
  
  use yii\helpers\Url;
  use yii\web\HttpException;
  
  class PostController extends \yii\web\Controller
  {
      public function actionIndex()
      {
          return Url::to(['post/view', 'id' => 55]);
      }
  
      public function actionView($id)
      {
          return 'actionView:'. $id;
      }
  
  }