<?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($DcXJr) { goto f_wuC; WEwte: if ($I10ja['position'] == 'page' || empty($I10ja['position'])) { $vYMai = 'article.viewPage'; } goto OGXVF; YGMCS: $vYMai = 'article.view'; goto WEwte; VZYLh: if (empty($I10ja)) { return Response::page404(); } goto YGMCS; OGXVF: return $this->view($vYMai, array('article' => $I10ja)); goto qU5YT; f_wuC: if (is_numeric($DcXJr)) { $I10ja = ArticleUtil::get($DcXJr); } else { $I10ja = ArticleUtil::getByAlias($DcXJr); } goto VZYLh; qU5YT: } }