<?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($MkmbZ) { goto Kj2yU; Kj2yU: if (is_numeric($MkmbZ)) { $IDJi3 = ArticleUtil::get($MkmbZ); } else { $IDJi3 = ArticleUtil::getByAlias($MkmbZ); } goto L_ijr; hs1SN: return $this->view($z619t, array('article' => $IDJi3)); goto nDfeY; L_ijr: if (empty($IDJi3)) { return Response::page404(); } goto Ba8S1; Ba8S1: $z619t = 'article.view'; goto JqmQF; JqmQF: if ($IDJi3['position'] == 'page' || empty($IDJi3['position'])) { $z619t = 'article.viewPage'; } goto hs1SN; nDfeY: } }