Skip to content

Commit b20827d

Browse files
committed
Response controller for play with Response formats
1 parent 13e6bb9 commit b20827d

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

controllers/ResponseController.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace app\controllers;
4+
5+
class ResponseController extends \yii\web\Controller
6+
{
7+
public function actionIndex()
8+
{
9+
return $this->render('index');
10+
}
11+
12+
}

views/response/index.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/** @var yii\web\View $this */
3+
?>
4+
<h1>response/index</h1>
5+
6+
<p>
7+
You may change the content of this page by modifying
8+
the file <code><?= __FILE__; ?></code>.
9+
</p>

0 commit comments

Comments
 (0)