public function render() { $warMapper = new WarMapper(); $status = '2'; $limit = '5'; $war = $warMapper->getWarListByStatusAndLimt($status, $limit); $this->getView()->set('war', $war); }
public function render() { $warMapper = new WarMapper(); $date = new \Ilch\Date(); $date = $date->format(null, true); $status = '1'; $limit = '5'; $war = $warMapper->getWarListByStatusAndLimt($status, $limit); $this->getView()->set('date', $date); $this->getView()->set('war', $war); }