<?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: Redirect with exit</title>
	<atom:link href="http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Sat, 13 Mar 2010 15:19:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Recent URLs tagged Redirect - Urlrecorder</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-116005</link>
		<dc:creator>Recent URLs tagged Redirect - Urlrecorder</dc:creator>
		<pubDate>Mon, 29 Dec 2008 06:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-116005</guid>
		<description>[...] recorded first by xzibrastripesx on 2008-12-16&#8594; Comment on Redirect with exit by cakebaker [...]</description>
		<content:encoded><![CDATA[<p>[...] recorded first by xzibrastripesx on 2008-12-16&rarr; Comment on Redirect with exit by cakebaker [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Missing Features &#187; Using proper CakePHP redirects</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-114517</link>
		<dc:creator>Missing Features &#187; Using proper CakePHP redirects</dc:creator>
		<pubDate>Mon, 15 Dec 2008 15:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-114517</guid>
		<description>[...] careful: Apparently in CakePHP 1.1 and earlier this-&gt;redirect() doesn&#8217;t call exit() after the header redirect [...]</description>
		<content:encoded><![CDATA[<p>[...] careful: Apparently in CakePHP 1.1 and earlier this-&gt;redirect() doesn&#8217;t call exit() after the header redirect [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-103527</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 18 Aug 2008 15:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-103527</guid>
		<description>@Ivanoff: Ah, yes, that&#039;s a common issue with PHP. To avoid it you can omit the ?&gt;.</description>
		<content:encoded><![CDATA[<p>@Ivanoff: Ah, yes, that&#8217;s a common issue with PHP. To avoid it you can omit the ?&gt;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivanoff</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-103320</link>
		<dc:creator>Ivanoff</dc:creator>
		<pubDate>Sun, 17 Aug 2008 09:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-103320</guid>
		<description>In my case it was whitespaces at the end of models and controllers. Php thinks its the start of the page and then refuses to output anything. This is why the line indicated is at the end of the php files. Solution : delete any whitespace after ?&gt;</description>
		<content:encoded><![CDATA[<p>In my case it was whitespaces at the end of models and controllers. Php thinks its the start of the page and then refuses to output anything. This is why the line indicated is at the end of the php files. Solution : delete any whitespace after ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-19169</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 11 Oct 2007 08:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-19169</guid>
		<description>@Ashutosh: Well, such a warning usually means you output something before you do the redirect. So analyze the code whether there is for example an echo statement. 

Good luck!</description>
		<content:encoded><![CDATA[<p>@Ashutosh: Well, such a warning usually means you output something before you do the redirect. So analyze the code whether there is for example an echo statement. </p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashutosh</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-18937</link>
		<dc:creator>Ashutosh</dc:creator>
		<pubDate>Wed, 10 Oct 2007 10:54:21 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-18937</guid>
		<description>plz rply me on 

ithandstest@gmail.com</description>
		<content:encoded><![CDATA[<p>plz rply me on </p>
<p><a href="mailto:ithandstest@gmail.com">ithandstest@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashutosh</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-18935</link>
		<dc:creator>Ashutosh</dc:creator>
		<pubDate>Wed, 10 Oct 2007 10:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-18935</guid>
		<description>if($this-&gt;Estimate-&gt;Save($estimate_info))						{
						$this-&gt;redirect(&quot;/estimates/show/&quot;.$this-&gt;Estimate-&gt;getLastInsertId());exit;
				$estimate_id=$this-&gt;Estimate-&gt;getLastInsertId(); 
						}

is not working its showing error

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\phpMyAdmin\projects\bethanypress\cake\basics.php:550) in C:\Program Files\xampp\phpMyAdmin\projects\bethanypress\cake\libs\controller\controller.php on line 447


dont know whts wrong with this please give me some solution 

***********I m waiting for your quick response**********</description>
		<content:encoded><![CDATA[<p>if($this-&gt;Estimate-&gt;Save($estimate_info))						{<br />
						$this-&gt;redirect(&#8220;/estimates/show/&#8221;.$this-&gt;Estimate-&gt;getLastInsertId());exit;<br />
				$estimate_id=$this-&gt;Estimate-&gt;getLastInsertId();<br />
						}</p>
<p>is not working its showing error</p>
<p>Warning: Cannot modify header information &#8211; headers already sent by (output started at C:\Program Files\xampp\phpMyAdmin\projects\bethanypress\cake\basics.php:550) in C:\Program Files\xampp\phpMyAdmin\projects\bethanypress\cake\libs\controller\controller.php on line 447</p>
<p>dont know whts wrong with this please give me some solution </p>
<p>***********I m waiting for your quick response**********</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darian Anthony Patrick</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-6435</link>
		<dc:creator>Darian Anthony Patrick</dc:creator>
		<pubDate>Sun, 06 May 2007 22:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-6435</guid>
		<description>&lt;strong&gt;Testing redirect() with exit() in PHP...&lt;/strong&gt;

The cakebaker mentions &quot;...you cannot test a function which contains an exit(), as the exit() also stops the execution of the test...&quot;.

I wanted to share a testing method that I&#039;ve been using in phpunit for testing non-CakePHP-centric code with f...</description>
		<content:encoded><![CDATA[<p><strong>Testing redirect() with exit() in PHP&#8230;</strong></p>
<p>The cakebaker mentions &#8220;&#8230;you cannot test a function which contains an exit(), as the exit() also stops the execution of the test&#8230;&#8221;.</p>
<p>I wanted to share a testing method that I&#8217;ve been using in phpunit for testing non-CakePHP-centric code with f&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CakePHP 1.2: redirect method at DLMax</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-6133</link>
		<dc:creator>CakePHP 1.2: redirect method at DLMax</dc:creator>
		<pubDate>Mon, 02 Apr 2007 07:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-6133</guid>
		<description>[...] cakebaker on this too.   Filed under: CakePHP  [...]</description>
		<content:encoded><![CDATA[<p>[...] cakebaker on this too.   Filed under: CakePHP  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/comment-page-1/#comment-6054</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 30 Mar 2007 07:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/03/28/redirect-with-exit/#comment-6054</guid>
		<description>@Dieter: Hm, in the cases I had to use a redirect in a beforeFilter it was for authentication purposes. And then it makes sense to do the redirect in the beforeFilter.

Personally, I would expect that redirect() stops the script execution by default. With a redirect you do a new request and so it seems logical to me to finish the &quot;old&quot; request immediately. And it would help to prevent a possible security hole in your application (a security hole I had in my early cake apps).</description>
		<content:encoded><![CDATA[<p>@Dieter: Hm, in the cases I had to use a redirect in a beforeFilter it was for authentication purposes. And then it makes sense to do the redirect in the beforeFilter.</p>
<p>Personally, I would expect that redirect() stops the script execution by default. With a redirect you do a new request and so it seems logical to me to finish the &#8220;old&#8221; request immediately. And it would help to prevent a possible security hole in your application (a security hole I had in my early cake apps).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
