ch1p_io_web/handler/Index.php
Evgeny Zinoviev f7bfdf58de initial
2022-07-09 19:40:17 +03:00

20 lines
486 B
PHP

<?php
namespace handler;
use admin;
use posts;
class Index extends \RequestHandler {
public function get(): \Response {
$posts = posts::getPosts(include_hidden: admin::isAdmin());
$tags = posts::getAllTags(include_hidden: admin::isAdmin());
$this->skin->title = "ch1p's Blog";
$this->skin->setOptions(['dynlogo_enabled' => false]);
return $this->skin->renderPage('main/index',
posts: $posts,
tags: $tags);
}
}