Example #1
0
 public function showAction()
 {
     $articleMapper = new ArticleMapper();
     $categoryMapper = new CategoryMapper();
     $articlesCats = $categoryMapper->getCategoryById($this->getRequest()->getParam('id'));
     $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuArticle'), array('controller' => 'index', 'action' => 'index'))->add($this->getTranslator()->trans('menuCats'), array('action' => 'index'))->add($articlesCats->getName(), array('action' => 'show', 'id' => $articlesCats->getId()));
     $this->getView()->set('articles', $articleMapper->getArticlesByCats($this->getRequest()->getParam('id'), $this->locale));
 }