Re: [fw-general] FlashMessenger plugin, message type
> The messages themselves can be anything that can be serialized. I tend to use > $message = array('type'=>'error', 'message'=>'blah'); Thanks for the hint! As far as I can tell from looking at the code of \Zend\Stdlib\SplQueue that is used for storing messages, that's true. I hadn't looked at it and only figured from * https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php#L130 that a message would have to be a string. > Though a support for content - & meta data would be useful... The question then is whether providing a concrete class for FlashMessenger messages would be overkill . . . Best regards, Andreas -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com
Re: [fw-general] FlashMessenger plugin, message type
The messages themselves can be anything that can be serialized. I tend to use $message = array('type'=>'error', 'message'=>'blah'); Though a support for content - & meta data would be useful... bas On 9 nov. 2012, at 15:14, Andreas Möller wrote: > may I ask why the FlashMessenger plugin does not support specifying the type > of the message that has been added? -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com
Re: [fw-general] FlashMessenger plugin, message type
Hi, i use the namespaces for it https://gist.github.com/4046645 br Ludwig On 11/09/2012 03:14 PM, Andreas Möller wrote: > Hello list, > > > may I ask why the FlashMessenger plugin does not support specifying the type > of the message that has been added? > > > Best regards, > > Andreas > -- CWD - Customized Web Development http://www.cwd.at Ludwig Ruderstaller l.ruderstal...@cwd.at Sickenberggasse 11/17PGP ID. 3284892C 1190 WienTel. 0660 / 11 7 5 3 2 1 -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com
Re: [fw-general] FlashMessenger plugin, message type
Hi, You can review this code... http://vufind.git.sourceforge.net/git/gitweb.cgi?p=vufind/vufind;a=blob_plain;f=module/VuFind/src/VuFind/Theme/Root/Helper/Flashmessages.php;hb=HEAD Volkan Altan http://volkanaltan.com/ İyi Çalışmalar. On Fri, Nov 9, 2012 at 4:14 PM, Andreas Möller wrote: > Hello list, > > > may I ask why the FlashMessenger plugin does not support specifying the > type of the message that has been added? > > > Best regards, > > Andreas > -- > List: fw-general@lists.zend.com > Info: http://framework.zend.com/archives > Unsubscribe: fw-general-unsubscr...@lists.zend.com > > >
[fw-general] FlashMessenger plugin, message type
Hello list, may I ask why the FlashMessenger plugin does not support specifying the type of the message that has been added? Best regards, Andreas -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com