/** * User flash messages displayed in the 'top' part of the page, * between header and the main part. */ public function topSummary() { if (MUserFlash::hasTopSuccess() || MUserFlash::hasTopInfo() || MUserFlash::hasTopError()) { $data = array('success' => MUserFlash::getTopSuccess(), 'info' => MUserFlash::getTopInfo(), 'error' => MUserFlash::getTopError()); $this->render('wUserFlash/topSummary', $data); } }