public function showAction() { $articleMapper = new ArticleMapper(); $date = new \Ilch\Date('' . $this->getRequest()->getParam('year') . '-' . $this->getRequest()->getParam('month') . '-01'); $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuArticle'), array('controller' => 'index', 'action' => 'index'))->add($this->getTranslator()->trans('menuArchives'), array('action' => 'index'))->add($date->format('F Y', true), array('action' => 'show', 'year' => $this->getRequest()->getParam('year'), 'month' => $this->getRequest()->getParam('month'))); $date = $this->getRequest()->getParam('year') . '-' . $this->getRequest()->getParam('month') . '-01'; $this->getView()->set('articles', $articleMapper->getArticlesByDate($date)); }