<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Article\Web\Controller; use ModStart\Core\Input\Response; use ModStart\Core\Util\ArrayUtil; use ModStart\Module\ModuleBaseController; use Module\Article\Util\ArticleUtil; class ArticleController extends ModuleBaseController { public function views($ULYbu) { goto rmqKX; zbriT: if (empty($kmRgK)) { return Response::page404(); } goto vIV5O; JaU7y: if ($kmRgK['position'] == 'page' || empty($kmRgK['position'])) { $qVdRh = 'article.viewPage'; } goto ITcBl; rmqKX: if (is_numeric($ULYbu)) { $kmRgK = ArticleUtil::get($ULYbu); } else { $kmRgK = ArticleUtil::getByAlias($ULYbu); } goto zbriT; ITcBl: return $this->view($qVdRh, array('article' => $kmRgK)); goto cQ4TC; vIV5O: $qVdRh = 'article.view'; goto JaU7y; cQ4TC: } }