*/ class Mage_Newsletter_Model_Session extends Mage_Core_Model_Session_Abstract { public function __construct() { $this->init('newsletter'); } public function addError($message) { $this->setErrorMessage($message); return $this; } public function addSuccess($message) { $this->setSuccessMessage($message); return $this; } public function getError() { $message = $this->getErrorMessage(); $this->unsErrorMessage(); return $message; } public function getSuccess() { $message = $this->getSuccessMessage(); $this->unsSuccessMessage(); return $message; } }