18 lines
386 B
PHP
18 lines
386 B
PHP
|
<?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; ?>
|