Re: [fw-general] FlashMessenger plugin, message type

2012-11-12 Thread Andreas Möller
> 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

Re: [fw-general] FlashMessenger plugin, message type

2012-11-12 Thread Bas Kamer
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

Re: [fw-general] FlashMessenger plugin, message type

2012-11-09 Thread Ludwig Ruderstaller
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 >

Re: [fw-general] FlashMessenger plugin, message type

2012-11-09 Thread Volkan Altan
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: > H

[fw-general] FlashMessenger plugin, message type

2012-11-09 Thread Andreas Möller
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 blog here

2012-08-18 Thread Steve Rayner
A really badly written blog about ZF2 flashMessenger can be found here http://civray-software.com/blog/?p=39 I can't seem to get wordpress to format the code very well. Please comment if i'm doing anything really bad regarding flashMessenger here.

[fw-general] FlashMessenger Issue with FF 14.0.1, possibly Zend_Session issue

2012-07-27 Thread tridem
I am still trying to find out what exactly is going on but this is what happens so far: I post a form from one controller action to another. On the second action I add a message to the flashMessenger and the redirect to the first action. I have a plugin that adds the messages to a placeholde

Re: [fw-general] FlashMessenger and i18n

2010-04-30 Thread Guillaume ORIOL
I'll do it and if somebody else think it could be usefull in Zend Framework I'll provide the class. -- Guillaume Le 30/04/10 19:00, Hector Virgen a écrit : I don't know if there's a plan for supporting this, but you should be able to extend the flash messenger to support translations. Since act

Re: [fw-general] FlashMessenger and i18n

2010-04-30 Thread Hector Virgen
I don't know if there's a plan for supporting this, but you should be able to extend the flash messenger to support translations. Since action controllers use the plugin loader and a LIFO stack for helper paths, you can transparently add support by introducing your own flash messenger. -- Hector

Re: [fw-general] FlashMessenger and i18n

2010-04-30 Thread Guillaume ORIOL
I know it but I was looking for a transparent way to do it. The way it has been done in Zend_Form for instance: $element->setLabel('label'); will get a translated label if a Zend_Translate object is available. -- Guillaume Le 30/04/10 18:03, Hector Virgen a écrit : You can manually translate y

Re: [fw-general] FlashMessenger and i18n

2010-04-30 Thread Hector Virgen
You can manually translate your messages after pulling them out of the flash messenger. -- Hector On Fri, Apr 30, 2010 at 8:53 AM, Guillaume ORIOL wrote: > Hi, > > Is there any plan to make the FlashMessenger action helper compatible with > Zend_Translate? > > Best regards > -- > Guillaume ORIO

[fw-general] FlashMessenger and i18n

2010-04-30 Thread Guillaume ORIOL
Hi, Is there any plan to make the FlashMessenger action helper compatible with Zend_Translate? Best regards -- Guillaume ORIOL Software engineer Technema

[fw-general] FlashMessenger in a view helper

2010-01-05 Thread Diego Potapczuk
How can i get the FlashMessenger inside a View Helper? I already saw it somewhere how to get a controller_action_helper, but i can´t find. ::: Diego Potapczuk

Re: [fw-general] flashMessenger a bit hard to use

2009-12-28 Thread Саша Стаменковић
Thats good enough then, thx. Regards, Saša Stamenković On Mon, Dec 28, 2009 at 1:19 AM, Michael Depetrillo wrote: > flashMessenger already has namespace support. > > > $this->getHelper('flashMessenger')->setNamespace("page1-errors")->addMessage($msg); > > $this->getHelper('flashMessenger')->set

Re: [fw-general] flashMessenger a bit hard to use

2009-12-27 Thread Michael Depetrillo
flashMessenger already has namespace support. $this->getHelper('flashMessenger')->setNamespace("page1-errors")->addMessage($msg); $this->getHelper('flashMessenger')->setNamespace("page2-messages")->addMessage($msg2); I typically don't check if flash messenger has messages in controller. getMessa

Re: [fw-general] flashMessenger a bit hard to use

2009-12-25 Thread umpirsky
Something like http://jamandcheese-on-phptoast.com/2009/11/03/custom-flash-messenger-for-zend-framework/ can be handy. umpirsky wrote: > > Hi. > > I'm trying to use flashMessenger, but interface it provides is a bit > unhandy, because messages cannot be retreived by id, you can get only > arra

[fw-general] flashMessenger a bit hard to use

2009-12-24 Thread umpirsky
Hi. I'm trying to use flashMessenger, but interface it provides is a bit unhandy, because messages cannot be retreived by id, you can get only array of messages and thats all. For example, I only need to detect success after sending email on my contact page, and show some message to user if emai

Re: [fw-general] FlashMessenger

2009-02-10 Thread Ehask71
Bob O wrote: > > Im trying to create a flash() that displays a message when the user needs > to be notified of something. e.g. "incorrect login" etc... > Bob, This is exactly what I do. I create a new Controller_Action like so _flashMessenger = $this->_helper->getHelper('FlashMessenger

Re: [fw-general] FlashMessenger

2009-02-09 Thread Moritz Mertinkat
You should do that in your layout.phtml file or in your action controller view scripts... Here's an example: http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.flashmessenger Bob O schrieb: hello all, Im trying to create a flash() that displ

[fw-general] FlashMessenger

2009-02-09 Thread Bob O
hello all, Im trying to create a flash() that displays a message when the user needs to be notified of something. e.g. "incorrect login" etc... So i can get the message to display, but Im trying to wrap it in a div with a defined class so i can control the behavior and look with CSS and JS this

Re: [fw-general] FlashMessenger

2008-10-31 Thread CatharsisJelly
CatharsisJelly wrote: > > I have a similar issue at the moment, did you find the solution for this? > Actually, forget that I found my problem I was putting something into a different namespace. e.g. $this->_flashMessenger->setNamespace( 'error' ); $this->_flashMessenger->ad

Re: [fw-general] FlashMessenger

2008-10-30 Thread CatharsisJelly
I have a similar issue at the moment, did you find the solution for this? -- View this message in context: http://www.nabble.com/FlashMessenger-tp19805597p20251929.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] FlashMessenger

2008-10-03 Thread Ralph Schindler
Do have any other requests coming through at the same time by chance? Perhaps you have a broken link pulling a 404, or you have ajax happening at the same time. Effectively, you need to make sure that you are not "Expending" an extra hop during the redirect. Does that make sense? -ralph On 10/3

[fw-general] FlashMessenger

2008-10-03 Thread Avi Block
This is something that i've done a million times without fail outside this framework, and the framework looks like it has an easy API to use such a feature. Having said that, someone please point out the errors of my ways I have a controller that looks something like this class MyContro

Re: [fw-general] FlashMessenger API Documentation?

2008-03-24 Thread Jake McGraw
Thanks, I eventually figured it out, now I have another question about FlashMessenger: Is there an equivalent Action Helper which will "deliver" a message in the same request that it was generated in? I realize this is trivial to accomplish using an array data member within a controller and then a

RE: [fw-general] FlashMessenger API Documentation?

2008-03-24 Thread Eric Marden
> From: Jake McGraw > For the life of me, I can't find the FlashMessenger documentation in the API browser: Hi Jake, Look under Zend_Controller > Zend_Controller_Action > Classes > Zend_Controller_Action_Helper_FlashMessenger in the API Docs -- Eric Marden Sr. PHP Developer

[fw-general] FlashMessenger API Documentation?

2008-03-21 Thread Jake McGraw
For the life of me, I can't find the FlashMessenger documentation in the API browser: http://framework.zend.com/apidoc/core/classtrees_Zend_View.html If it isn't there, where should it be? - jake

Re: [fw-general] FlashMessenger delayed response

2007-11-07 Thread Jeffrey Sambells
Answered my own problem. Apparently I wanted to do getCurrentMessages() as getMessages() only retrieves messages from the internal $_messages property (from the previous request) but not those stored in $_session. addMessage() only puts them in $_session. Also, the getMessages() method is

[fw-general] FlashMessenger delayed response

2007-11-07 Thread Jeffrey Sambells
Hi All, I'm having a bit of an issue with the FlashMessenger controller helper. After adding a message in my controller: $this->_flashMessenger->addMessage('new message '.date(DATE_RFC2822)); I later on (in a view helper) want to retrieve the messages so I do this, which I think is correct:

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-17 Thread Mirmillo
I have this same problem, currently I am addressing it by using this in my Controller Base: function postDispatch() { /* * this is gonna be a headache later, I think... */ /* this handles messages across pages */ if ($t

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-16 Thread Shekar C Reddy
Maybe, you could try write-closing and re-reading the session in the same request? On 10/16/07, Andries Seutens <[EMAIL PROTECTED]> wrote: > > Hi, > > I am not using redirect(), nor forward(). I would like to stay in the > current request. > > Best, > > Andries Seutens > > Shekar C Reddy schre

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-16 Thread Andries Seutens
Hi, I am not using redirect(), nor forward(). I would like to stay in the current request. Best, Andries Seutens Shekar C Reddy schreef: I meant page redirect() instead of page forward(). Session write-closes and re-reads on redirect/exit. On 10/16/07, *Shekar C Reddy* <[EMAIL PROTEC

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-16 Thread Shekar C Reddy
I meant page redirect() instead of page forward(). Session write-closes and re-reads on redirect/exit. On 10/16/07, Shekar C Reddy <[EMAIL PROTECTED]> wrote: > > Andries, > > I guess you need an exit() from the application for the FlashMessenger to > work as you expect. The reason it is working

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-16 Thread Shekar C Reddy
Andries, I guess you need an exit() from the application for the FlashMessenger to work as you expect. The reason it is working on second page load may be due to the fact it is exiting the app somewhere due to some condition. Are you sure you are exit()ing the app on errors/result? HTH On 10

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-16 Thread Andries Seutens
lauren49 schreef: Andries Seutens wrote: Zend_Session_Namespace::setExpirationHops(). Oh, sweet! A much better solution than "I don't think that's possible". :) Thanks for posting it. - Lauren Apperently I was to quick. It still does not work. Anybody has a clue how I can work

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-15 Thread lauren49
Andries Seutens wrote: > > Zend_Session_Namespace::setExpirationHops(). > Oh, sweet! A much better solution than "I don't think that's possible". :) Thanks for posting it. - Lauren -- View this message in context: http://www.nabble.com/FlashMessenger-and-Controller-plugins---Help-wanted-tf4

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-14 Thread Andries Seutens
Oopz! I didnt read your whole message. I looked at FlashMessenger's code, and I noticed that it uses Zend_Session_Namespace::setExpirationHops(). By overriding the addMessage method, and leaving this method call out, my problem is solved. Thanks! -- Andries Seutens http://andries.systray

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-14 Thread Andries Seutens
I'm still waiting for the magic answer :). Best, -- Andries Seutens http://andries.systray.be lauren49 schreef: You may have already solved this but I figured I'd post it in case it helps anyone else. I've implemented your solution and experienced the same issue. Andries Seutens wrote:

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-14 Thread lauren49
You may have already solved this but I figured I'd post it in case it helps anyone else. I've implemented your solution and experienced the same issue. Andries Seutens wrote: > > The problem which I am now facing, is that the messages do not show up > until the 2nd request. > Correct me if I'

[fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-04 Thread Andries Seutens
Dear all, I have a couple of questions related to ZF's FlashMessenger and Controller plugins. I have 2 type of messengers, which both extend the FlashMessenger. The first one is the ResultMessenger, which I use to notify the user when an action has succeeded. The other one is the ErrorMesse

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Laurent Melmoux
From the debian website we can read that : "No new functionality is added to the stable release. Once a Debian version is released and tagged `stable' it will only get security updates." http://www.debian.org/doc/manuals/debian-faq/ch-getting.en.html#s-updatestable Here is the debian Changelog

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Ralph Schindler
Kevin McArthur wrote: The biggest issue is that the debian etch (now stable) distribution spec's on php 5.2.0 which currently causes an incompatibility between parts of Zend Framework and Debian. We should encourage Debian should fix this. Perhaps pressure can be put on them to raise the s

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Kevin McArthur
: Tuesday, August 07, 2007 3:04 PM Subject: Re: [fw-general] FlashMessenger - Indirect modification of overloaded property -- Kevin McArthur <[EMAIL PROTECTED]> wrote (on Tuesday, 07 August 2007, 02:37 PM -0600): Maybe we need to add a disclaimer to the version requirements page listing

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Matthew Weier O'Phinney
nged > >for 5.2.1, it was modified enough that there were ways to implement the > >functionality. > > > > > >>>- Original Message - From: "Matthew Weier O'Phinney" > >>><[EMAIL PROTECTED]> > >>>To: > >>

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Kevin McArthur
; To: Sent: Tuesday, August 07, 2007 2:27 PM Subject: Re: [fw-general] FlashMessenger - Indirect modification of overloaded property -- Laurent Melmoux <[EMAIL PROTECTED]> wrote (on Tuesday, 07 August 2007, 10:14 PM +0200): Kevin McArthur a écrit : >The biggest issue is that the debian

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Matthew Weier O'Phinney
;t completely changed for 5.2.1, it was modified enough that there were ways to implement the functionality. > >- Original Message - From: "Matthew Weier O'Phinney" > ><[EMAIL PROTECTED]> > >To: > >Sent: Tuesday, August 07, 20

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Laurent Melmoux
O'Phinney" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 07, 2007 1:18 PM Subject: Re: [fw-general] FlashMessenger - Indirect modification of overloaded property -- Kevin McArthur <[EMAIL PROTECTED]> wrote (on Tuesday, 07 August 2007, 01:08 PM -0600): Copying ralph

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Laurent Melmoux
tracker it would be helpful as we track these down. Kevin - Original Message - From: "Laurent Melmoux" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 07, 2007 1:04 PM Subject: [fw-general] FlashMessenger - Indirect modification of overloaded property Hi, I'

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Kevin McArthur
Tuesday, August 07, 2007 1:18 PM Subject: Re: [fw-general] FlashMessenger - Indirect modification of overloaded property -- Kevin McArthur <[EMAIL PROTECTED]> wrote (on Tuesday, 07 August 2007, 01:08 PM -0600): Copying ralph on this directly. (he's resolving/testing these bugs in

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Matthew Weier O'Phinney
; From: "Laurent Melmoux" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, August 07, 2007 1:04 PM > Subject: [fw-general] FlashMessenger - Indirect modification of overloaded > property > > > >Hi, > > > >I'm geting this error when using FlashMessen

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Kevin McArthur
gust 07, 2007 1:04 PM Subject: [fw-general] FlashMessenger - Indirect modification of overloaded property Hi, I'm geting this error when using FlashMessenger Helper : Notice: Indirect modification of overloaded property Zend_Session_Namespace::$default has no effect in /www/2mx.int/libr

[fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Laurent Melmoux
Hi, I'm geting this error when using FlashMessenger Helper : Notice: Indirect modification of overloaded property Zend_Session_Namespace::$default has no effect in /www/2mx.int/library/Zend/Controller/Action/Helper/FlashMessenger.php on line 133 is it a bug ? I'm using php 5.2.0, with the

Re: [fw-general] FlashMessenger Patch - Completion of the API

2007-07-17 Thread Matthew Weier O'Phinney
-- townxelliot <[EMAIL PROTECTED]> wrote (on Tuesday, 17 July 2007, 08:11 AM -0700): > I think I'd argue for keeping this stuff in the session, but maybe providing > a way to specify different session back-ends, or maybe for specifying a > different back-end for different namespaces. That's a deb

Re: [fw-general] FlashMessenger Patch - Completion of the API

2007-07-17 Thread townxelliot
I think I'd argue for keeping this stuff in the session, but maybe providing a way to specify different session back-ends, or maybe for specifying a different back-end for different namespaces. I also wonder how the hasMessages() and similar state reporting methods should work with multiple namesp

Re: [fw-general] FlashMessenger Patch - Completion of the API

2007-07-16 Thread Matthew Weier O'Phinney
-- Eric Coleman <[EMAIL PROTECTED]> wrote (on Monday, 16 July 2007, 12:52 PM -0400): > way to rain on my parade I think the issue is valid; the question is how to approach it. Ralph brings up a good argument: some of the use cases indicate that a more generic, intra-action messaging system should

Re: [fw-general] FlashMessenger Patch - Completion of the API

2007-07-16 Thread Eric Coleman
way to rain on my parade On 7/16/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: -- townxelliot <[EMAIL PROTECTED]> wrote (on Monday, 16 July 2007, 09:03 AM -0700): > > I'm not sure how FlashMessenger is supposed to work, as there are several > places where a $namespace option is supposed

Re: [fw-general] FlashMessenger Patch - Completion of the API

2007-07-16 Thread Matthew Weier O'Phinney
-- townxelliot <[EMAIL PROTECTED]> wrote (on Monday, 16 July 2007, 09:03 AM -0700): > > I'm not sure how FlashMessenger is supposed to work, as there are several > places where a $namespace option is supposed to be accepted by a function, > but it's not part of the parameters. Also, adding namespa

Re: [fw-general] FlashMessenger Patch - Completion of the API

2007-07-16 Thread townxelliot
I'm not sure how FlashMessenger is supposed to work, as there are several places where a $namespace option is supposed to be accepted by a function, but it's not part of the parameters. Also, adding namespaces adds complexity when using hasMessages(), count() etc., which currently only return valu

[fw-general] FlashMessenger Patch - Completion of the API

2007-06-10 Thread Eric Coleman
I believe the API is incomplete as I mentioned in a previous email. I spent a tiny bit of time testing this and I think the small changes are enough.. What I did - added getNamespace() - returns current namespace - implemented direct method as direct($message, $namespace = 'default')