<?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($M3rBS) { goto e948K; oveb1: if (empty($m2hNL)) { return Response::page404(); } goto shnur; Jjdsm: return $this->view($RzPgc, array('article' => $m2hNL)); goto rfEmm; e948K: if (is_numeric($M3rBS)) { $m2hNL = ArticleUtil::get($M3rBS); } else { $m2hNL = ArticleUtil::getByAlias($M3rBS); } goto oveb1; shnur: $RzPgc = 'article.view'; goto fnvMJ; fnvMJ: if ($m2hNL['position'] == 'page' || empty($m2hNL['position'])) { $RzPgc = 'article.viewPage'; } goto Jjdsm; rfEmm: } }