messages); } /** * add function. * * @access public * @param mixed $message * @param mixed $type * @return void */ public function add($message, $type) { if ($type === 'error') { $type = 'alert-danger'; } elseif ($type === 'success') { $type = 'alert-success'; } elseif ($type === 'info') { $type = 'alert-info'; } elseif ($type === 'warning') { $type = 'alert-warning'; } elseif ($type === 'offer') { $type = 'alert-offer'; } elseif ($type === 'critical') { $type = 'alert-critical'; } $this->messages[] = '