public function showAction() { $request = $this->getRequest(); $limit = $this->getParam('limit', 20); $categoryId = $request->getParam('category_id'); $articles = Modules_News_Services_Article::getHotArticle($limit, $categoryId); if (count($articles) > 0) { $this->view->articles = $articles; $this->view->topArticle = $articles[0]; } }