public function findallAction() { $notif = new Backoffice_Model_Notification(); $notif->update(); $notifs = $notif->findAll(); $data = array("notifs" => array()); foreach ($notifs as $notif) { $notif->setIsRead((bool) $notif->getIsRead()); $notif->setIsHighPriority((bool) $notif->getIsHighPriority()); $data["notifs"][] = $notif->getData(); } $this->_sendHtml($data); }