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