first commit

This commit is contained in:
2023-05-06 20:40:02 +03:00
commit fdf3e1e602
221 changed files with 12262 additions and 0 deletions

18
frontend/views/news/one.php Executable file
View 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; ?>