<?php
 namespace Module\Article\Web\Controller; use ModStart\Core\Input\Response; use ModStart\Module\ModuleBaseController; use Module\Article\Util\ArticleUtil; class ArticleController extends ModuleBaseController { public function views($id) { $article = ArticleUtil::get($id); if (empty($article)) { return Response::page404(); } return $this->view('article.view', [ 'article' => $article ]); } }