> 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
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
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
>
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
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
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.
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
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
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
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
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
Hi,
Is there any plan to make the FlashMessenger action helper compatible with
Zend_Translate?
Best regards
--
Guillaume ORIOL
Software engineer
Technema
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
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
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
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
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
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
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
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
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
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.
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
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
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
> 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
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
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
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:
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
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
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
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
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
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
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
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
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:
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'
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
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
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
: 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
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:
> >>
;
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
;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
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
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'
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
; 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
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
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
-- 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
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
-- 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
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
-- 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
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
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')
59 matches
Mail list logo