public function flashMessage() { $success = Controller::getSessionValue('flash_success', 'flash'); $error = Controller::getSessionValue('flash_error', 'flash'); Controller::setSessionValue('', 'flash_success', 'flash'); Controller::setSessionValue('', 'flash_error', 'flash'); $this->loadTmplVar('FLASH', '/app/tmpl/haml/flash.haml'); $this->addHamlVar('flashSuccess', $success); $this->addHamlVar('flashError', $error); }