<?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($StE5h) { goto iqpsx; wQ_PA: if ($glXLo['position'] == 'page' || empty($glXLo['position'])) { $faKDa = 'article.viewPage'; } goto oZeQ6; Wm_Wy: $faKDa = 'article.view'; goto wQ_PA; iqpsx: if (is_numeric($StE5h)) { $glXLo = ArticleUtil::get($StE5h); } else { $glXLo = ArticleUtil::getByAlias($StE5h); } goto z1Z8w; z1Z8w: if (empty($glXLo)) { return Response::page404(); } goto Wm_Wy; oZeQ6: return $this->view($faKDa, array('article' => $glXLo)); goto lPQRg; lPQRg: } }