Example #1
0
 /**
  * Get all the persisted Request Data alerts (if any) and parse them into bootstrap HTML alerts
  * @return string
  */
 protected function _view_alerts()
 {
     $msgs = RD::get_once(NULL, array(), FALSE);
     if (count($msgs)) {
         return View::factory('RD/alerts', array('messages' => $msgs))->render();
     } else {
         if (RD::has_messages()) {
             return View::factory('RD/alerts', array('messages' => RD::get_current(null, $this->_dump_all_alerts)))->render();
         } else {
             return '';
         }
     }
 }