<?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($pNLgg) { goto qGFtR; wEl3b: $wFt7y = 'article.view'; goto zl57l; qGFtR: if (is_numeric($pNLgg)) { $QpIae = ArticleUtil::get($pNLgg); } else { $QpIae = ArticleUtil::getByAlias($pNLgg); } goto mlfWv; zl57l: if ($QpIae['position'] == 'page' || empty($QpIae['position'])) { $wFt7y = 'article.viewPage'; } goto XDcyh; mlfWv: if (empty($QpIae)) { return Response::page404(); } goto wEl3b; XDcyh: return $this->view($wFt7y, array('article' => $QpIae)); goto s4Mab; s4Mab: } }