first commit
This commit is contained in:
18
frontend/views/news/one.php
Executable file
18
frontend/views/news/one.php
Executable file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use common\models\News;
|
||||
use yii\helpers\Url;
|
||||
|
||||
/** @var yii\web\View $this */
|
||||
/** @var News $new */
|
||||
?>
|
||||
|
||||
<?php if (!empty($new)):?>
|
||||
<div>
|
||||
<h1><?= $new->title ?></h1>
|
||||
<a href="<?= Url::base() . '/news' ?>">Назад</a>
|
||||
<p><?= $new->text ?></p>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<h2>Новость удалена</h2>
|
||||
<?php endif; ?>
|
Reference in New Issue
Block a user