


<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: DooFlashMessenger</title>
	<atom:link href="http://learn.doophp.com/2009/11/dooflashmessenger/feed/" rel="self" type="application/rss+xml" />
	<link>http://learn.doophp.com/2009/11/dooflashmessenger/</link>
	<description>Learn DooPHP - a high performance MVC based PHP framework</description>
	<lastBuildDate>Tue, 22 Feb 2011 08:38:40 +0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Milos Kovacki</title>
		<link>http://learn.doophp.com/2009/11/dooflashmessenger/comment-page-1/#comment-159</link>
		<dc:creator>Milos Kovacki</dc:creator>
		<pubDate>Wed, 07 Jul 2010 14:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://learn.doophp.com/?p=145#comment-159</guid>
		<description>You are using it wrong displayMessages function is used for displaying messages it prints messages, if you want to add messages to some variable you can do that like:

$this-&gt;data[&#039;messages&#039;] = $flash-&gt;getMessages();</description>
		<content:encoded><![CDATA[<p>You are using it wrong displayMessages function is used for displaying messages it prints messages, if you want to add messages to some variable you can do that like:</p>
<p>$this->data['messages'] = $flash->getMessages();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://learn.doophp.com/2009/11/dooflashmessenger/comment-page-1/#comment-151</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 23 Jun 2010 12:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://learn.doophp.com/?p=145#comment-151</guid>
		<description>I use it in maincontroller like this.
and displaymessages() did not echo the message.

	public function addMessage($message){
		Doo::loadhelper(&#039;DooFlashMessenger&#039;);
		$flash = new DooFlashMessenger();
		$flash-&gt;addMessage($message); 
	}
	
	public function displayMessage(){ 
		Doo::loadhelper(&#039;DooFlashMessenger&#039;);
		$flash = new DooFlashMessenger();
		$this-&gt;data[&#039;message&#039;] = $flash-&gt;displayMessages();
	}</description>
		<content:encoded><![CDATA[<p>I use it in maincontroller like this.<br />
and displaymessages() did not echo the message.</p>
<p>	public function addMessage($message){<br />
		Doo::loadhelper(&#8217;DooFlashMessenger&#8217;);<br />
		$flash = new DooFlashMessenger();<br />
		$flash-&gt;addMessage($message);<br />
	}</p>
<p>	public function displayMessage(){<br />
		Doo::loadhelper(&#8217;DooFlashMessenger&#8217;);<br />
		$flash = new DooFlashMessenger();<br />
		$this-&gt;data['message'] = $flash-&gt;displayMessages();<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milos Kovacki</title>
		<link>http://learn.doophp.com/2009/11/dooflashmessenger/comment-page-1/#comment-142</link>
		<dc:creator>Milos Kovacki</dc:creator>
		<pubDate>Wed, 17 Mar 2010 14:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://learn.doophp.com/?p=145#comment-142</guid>
		<description>You dont need to you can add messages and put something like:

Error&#124;This is error.
Warning&#124;This is warning.

And then make your own function that gets array with messages and parse them like you want in view.</description>
		<content:encoded><![CDATA[<p>You dont need to you can add messages and put something like:</p>
<p>Error|This is error.<br />
Warning|This is warning.</p>
<p>And then make your own function that gets array with messages and parse them like you want in view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reno S. A.</title>
		<link>http://learn.doophp.com/2009/11/dooflashmessenger/comment-page-1/#comment-141</link>
		<dc:creator>Reno S. A.</dc:creator>
		<pubDate>Tue, 16 Mar 2010 19:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://learn.doophp.com/?p=145#comment-141</guid>
		<description>When I want to keep error messages along with warning messages in the flash, and I want the error and warning messages displayed differently on the view, then I need to make two instances with two different namespace (which I thought the code has not completed yet).

Why don&#039;t you just implement the Ruby on Rails ways of handling flash messages?</description>
		<content:encoded><![CDATA[<p>When I want to keep error messages along with warning messages in the flash, and I want the error and warning messages displayed differently on the view, then I need to make two instances with two different namespace (which I thought the code has not completed yet).</p>
<p>Why don&#8217;t you just implement the Ruby on Rails ways of handling flash messages?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milos Kovacki</title>
		<link>http://learn.doophp.com/2009/11/dooflashmessenger/comment-page-1/#comment-138</link>
		<dc:creator>Milos Kovacki</dc:creator>
		<pubDate>Fri, 12 Mar 2010 12:21:48 +0000</pubDate>
		<guid isPermaLink="false">http://learn.doophp.com/?p=145#comment-138</guid>
		<description>DooFlashMessenger is used when you do some action and then redirect user to another script where that message is shown.

How it works is that message is stored in session, when script is activated again it reads it from session, this is used mainly for admin panels.

So for example you make action for editing something and then on end of it you say: 

$this-&gt;_flashMessenger-&gt;addMessage(&quot;Table [_1] is edited!&quot;, array($tableName));
$this-&gt;_redirect(baseUrl . &quot;edit-tables&quot;);</description>
		<content:encoded><![CDATA[<p>DooFlashMessenger is used when you do some action and then redirect user to another script where that message is shown.</p>
<p>How it works is that message is stored in session, when script is activated again it reads it from session, this is used mainly for admin panels.</p>
<p>So for example you make action for editing something and then on end of it you say: </p>
<p>$this->_flashMessenger->addMessage(&#8221;Table [_1] is edited!&#8221;, array($tableName));<br />
$this->_redirect(baseUrl . &#8220;edit-tables&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cevarief</title>
		<link>http://learn.doophp.com/2009/11/dooflashmessenger/comment-page-1/#comment-137</link>
		<dc:creator>cevarief</dc:creator>
		<pubDate>Fri, 12 Mar 2010 07:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://learn.doophp.com/?p=145#comment-137</guid>
		<description>Is this something like lite version of Doo Logger with addition of session to make it global access ? I think this should be part the Doo::logger instead of a helper.</description>
		<content:encoded><![CDATA[<p>Is this something like lite version of Doo Logger with addition of session to make it global access ? I think this should be part the Doo::logger instead of a helper.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hendrawan</title>
		<link>http://learn.doophp.com/2009/11/dooflashmessenger/comment-page-1/#comment-116</link>
		<dc:creator>hendrawan</dc:creator>
		<pubDate>Tue, 05 Jan 2010 20:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://learn.doophp.com/?p=145#comment-116</guid>
		<description>detail tutorial please....</description>
		<content:encoded><![CDATA[<p>detail tutorial please&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leng</title>
		<link>http://learn.doophp.com/2009/11/dooflashmessenger/comment-page-1/#comment-94</link>
		<dc:creator>Leng</dc:creator>
		<pubDate>Sat, 05 Dec 2009 00:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://learn.doophp.com/?p=145#comment-94</guid>
		<description>Spanish translation added. Original version at http://eomblog.blogspot.com/2009/11/dooflashmessenger-con-doophp.html</description>
		<content:encoded><![CDATA[<p>Spanish translation added. Original version at <a href="http://eomblog.blogspot.com/2009/11/dooflashmessenger-con-doophp.html" rel="nofollow">http://eomblog.blogspot.com/2009/11/dooflashmessenger-con-doophp.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
