<?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: Moving VuFind to Zend Framework 2: Part 5 — The Dreaded forward() Bug</title>
	<atom:link href="http://blog.library.villanova.edu/libtech/2012/08/13/moving-vufind-to-zend-framework-2-part-5-the-dreaded-forward-bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.library.villanova.edu/libtech/2012/08/13/moving-vufind-to-zend-framework-2-part-5-the-dreaded-forward-bug/</link>
	<description>Knowledge Sharing from Falvey&#039;s Technology Team</description>
	<lastBuildDate>Thu, 14 Mar 2013 19:32:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: dkatz</title>
		<link>http://blog.library.villanova.edu/libtech/2012/08/13/moving-vufind-to-zend-framework-2-part-5-the-dreaded-forward-bug/#comment-88</link>
		<dc:creator>dkatz</dc:creator>
		<pubDate>Mon, 20 Aug 2012 18:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.library.villanova.edu/libtech/?p=124#comment-88</guid>
		<description><![CDATA[Another update: this is now a non-issue; the framework has been updated so that the forward() plug-in behaves more logically.  See the notes added to the top of the post for more details.]]></description>
		<content:encoded><![CDATA[<p>Another update: this is now a non-issue; the framework has been updated so that the forward() plug-in behaves more logically.  See the notes added to the top of the post for more details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dkatz</title>
		<link>http://blog.library.villanova.edu/libtech/2012/08/13/moving-vufind-to-zend-framework-2-part-5-the-dreaded-forward-bug/#comment-86</link>
		<dc:creator>dkatz</dc:creator>
		<pubDate>Tue, 14 Aug 2012 16:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.library.villanova.edu/libtech/?p=124#comment-86</guid>
		<description><![CDATA[One little bit of followup to this.  Since using the forward() plugin is quite verbose, and since all of VuFind&#039;s forward actions follow the same basic pattern, I have created a helper method called forwardTo() in the base controller that all of VuFind&#039;s other controllers inherit from.  The new method allows this lengthy and unattractive code:

$this-&gt;forward()-&gt;dispatch(&#039;controller&#039;, array(&#039;action&#039; =&gt; &#039;action&#039;));

return false;

to be simplified down to:

return $this-&gt;forwardTo(&#039;controller&#039;, &#039;action&#039;);

If ZF2 eventually incorporates its own convenience method, we might consider switching to that.  But for now, this makes the code more readable and gives us a centralized place where we can add extra forward-related processing if we run into a new forwarding problem similar to the one described above.

In case anyone&#039;s interested, here are the relevant diffs:

http://vufind.git.sourceforge.net/git/gitweb.cgi?p=vufind/vufind;a=commitdiff;h=d78ecd58680ba60f6f66bd905afa2abe8af7e38d]]></description>
		<content:encoded><![CDATA[<p>One little bit of followup to this.  Since using the forward() plugin is quite verbose, and since all of VuFind&#8217;s forward actions follow the same basic pattern, I have created a helper method called forwardTo() in the base controller that all of VuFind&#8217;s other controllers inherit from.  The new method allows this lengthy and unattractive code:</p>
<p>$this-&gt;forward()-&gt;dispatch(&#8216;controller&#8217;, array(&#8216;action&#8217; =&gt; &#8216;action&#8217;));</p>
<p>return false;</p>
<p>to be simplified down to:</p>
<p>return $this-&gt;forwardTo(&#8216;controller&#8217;, &#8216;action&#8217;);</p>
<p>If ZF2 eventually incorporates its own convenience method, we might consider switching to that.  But for now, this makes the code more readable and gives us a centralized place where we can add extra forward-related processing if we run into a new forwarding problem similar to the one described above.</p>
<p>In case anyone&#8217;s interested, here are the relevant diffs:</p>
<p><a href="http://vufind.git.sourceforge.net/git/gitweb.cgi?p=vufind/vufind;a=commitdiff;h=d78ecd58680ba60f6f66bd905afa2abe8af7e38d" rel="nofollow">http://vufind.git.sourceforge.net/git/gitweb.cgi?p=vufind/vufind;a=commitdiff;h=d78ecd58680ba60f6f66bd905afa2abe8af7e38d</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
