View Single Post
  #2 (permalink)  
Old 04-28-2008, 04:13 PM
troy's Avatar
troy troy is offline
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default

PHP Code:
class SomeController extends Zend_Controller_Action
{
    protected 
$_flashMessenger null;
    
    public function 
init()
    {
        
parent::init();
        
$this->_flashMessenger $this->_helper->getHelper('FlashMessenger');
        
$this->initView();
    }

    public function 
indexAction()
    {
        
$this->_flashMessenger->addMessage('Record Saved!');
    }

    public function 
postAction()
    {
        
$msg = $$this->_flashMessenger->getMessages();
        foreach(
$msg as $v){
            
$this->view->message $v.'<br />';
        } 
Reply With Quote