Type of Flash Messenger in Zend

后端 未结 4 543
遥遥无期
遥遥无期 2021-02-02 15:25

Is it possible or How can i give a type to a FlashMessage in Zend?

For example

/* This is a \"Success\" message */
$this -> _helper -> FlashMesseng         


        
4条回答
  •  鱼传尺愫
    2021-02-02 15:51

    At one time you used assoc arrays to do this... Im not ure if this is still current or not...

    /* This is a "Success" message */
    $this -> _helper -> FlashMessenger(array('success' => 'You are successfully created a post.')); 
    
    /* This is an "Error" message  */
    $this -> _helper -> FlashMessenger(array('error' => 'There is an error while creating post.'));
    
    /* This is just a "Notification" message */
    $this -> _helper -> FlashMessenger(array('notice' => 'Now you can see your Post'));
    

提交回复
热议问题