Пример #1
0
 public function render()
 {
     $date = new \Ilch\Date();
     $birthdayMapper = new BirthdayMapper();
     $this->getView()->set('birthdayDateNowYMD', $date->format('Ymd'));
     $this->getView()->set('birthdayListNOW', $birthdayMapper->getBirthdayUserList($this->getConfig()->get('bday_boxShow')));
 }
Пример #2
0
 public function indexAction()
 {
     $userMapper = new UserMapper();
     $birthdayMapper = new BirthdayMapper();
     $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuBirthdayList'), array('controller' => 'index'));
     $this->getView()->set('birthdayListNOW', $birthdayMapper->getBirthdayUserList());
     $this->getView()->set('birthdayList', $userMapper->getUserList());
 }