<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gotoroute &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/gotoroute/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>Redirecting with Zend Framework</title>
		<link>/2009/11/27/redirecting-with-zend-framework/</link>
		<comments>/2009/11/27/redirecting-with-zend-framework/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 07:43:04 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[gotoroute]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[redirector]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">/?p=814</guid>
		<description><![CDATA[Many of the web applications need to be redirected to some given URI sooner or later. In that scenario like redirecting to the profile page after login, which is very common to almost every app, you need to change the URI of the browser after the login form is validated. You can make this by &#8230; <a href="/2009/11/27/redirecting-with-zend-framework/" class="more-link">Continue reading <span class="screen-reader-text">Redirecting with Zend Framework</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/12/20/redirecting-with-zend-framework-part-2/" rel="bookmark" title="Redirecting with Zend Framework &#8211; part 2">Redirecting with Zend Framework &#8211; part 2 </a></li>
<li><a href="/2009/04/21/zend-framework-disable-zend-layout/" rel="bookmark" title="Zend Framework &#8211; Disable Zend Layout">Zend Framework &#8211; Disable Zend Layout </a></li>
<li><a href="/2010/06/16/zend-examples-get-parameters-default-value/" rel="bookmark" title="Zend Examples: GET Parameters Default Value">Zend Examples: GET Parameters Default Value </a></li>
<li><a href="/2010/04/21/setting-a-zend-framework-_redirect-referer/" rel="bookmark" title="Setting a Zend Framework _redirect Referer">Setting a Zend Framework _redirect Referer </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Many of the web applications need to be redirected to some given URI sooner or later. In that scenario like redirecting to the profile page after login, which is very common to almost every app, you need to change the URI of the browser after the login form is validated. You can make this by simply using the built in header function in PHP. In other terms the most popular method to redirect in Zend Framework, don&#8217;t know why, but this is the _forward method of the controller actions:</p>
<blockquote>
<pre>$this-&gt;_forward('action-name');</pre>
</blockquote>
<p>The problem here is that thus you get to the given action name, or controller/action but the URI of the browser stays as it is from the caller action.</p>
<p>If you&#8217;d like to redirect, like the header function will do it you should use the following construction:</p>
<blockquote>
<pre>$this-&gt;_helper-&gt;redirector-&gt;gotoRoute(array(
   'controller'=&gt; 'contrlname',
   'action' =&gt;'actionname'));</pre>
</blockquote>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/12/20/redirecting-with-zend-framework-part-2/" rel="bookmark" title="Redirecting with Zend Framework &#8211; part 2">Redirecting with Zend Framework &#8211; part 2 </a></li>
<li><a href="/2009/04/21/zend-framework-disable-zend-layout/" rel="bookmark" title="Zend Framework &#8211; Disable Zend Layout">Zend Framework &#8211; Disable Zend Layout </a></li>
<li><a href="/2010/06/16/zend-examples-get-parameters-default-value/" rel="bookmark" title="Zend Examples: GET Parameters Default Value">Zend Examples: GET Parameters Default Value </a></li>
<li><a href="/2010/04/21/setting-a-zend-framework-_redirect-referer/" rel="bookmark" title="Setting a Zend Framework _redirect Referer">Setting a Zend Framework _redirect Referer </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/11/27/redirecting-with-zend-framework/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
