<?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($WXJys) { goto uwejS; Nh1AQ: if (empty($yWB9Z)) { return Response::page404(); } goto woJtp; uwejS: if (is_numeric($WXJys)) { $yWB9Z = ArticleUtil::get($WXJys); } else { $yWB9Z = ArticleUtil::getByAlias($WXJys); } goto Nh1AQ; woJtp: $jFJYP = 'article.view'; goto CjAyA; BDehI: return $this->view($jFJYP, array('article' => $yWB9Z)); goto sphhl; CjAyA: if ($yWB9Z['position'] == 'page') { $jFJYP = 'article.viewPage'; } goto BDehI; sphhl: } }