Logo white

Administrator / liniya-svitla

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • liniya-svitla
  • frontend
  • controllers
  • PostController.php
  • first commit
    4253cbec
    root authored
    2016-08-11 16:17:59 +0300  
    Browse Code ยป
PostController.php 324 Bytes
Edit Raw Blame History
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;
    }

}