<?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>Blue Horn</title>
	<atom:link href="http://bluehorn.co.nz/feed/" rel="self" type="application/rss+xml" />
	<link>http://bluehorn.co.nz</link>
	<description>New Zealand Web Design &#38; Development (PHP 5, MySQL, Symfony Framework, Apache, Linux)</description>
	<lastBuildDate>Tue, 29 Nov 2011 22:23:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Symfony 2 is released</title>
		<link>http://bluehorn.co.nz/2011/07/29/symfony-2-is-released/</link>
		<comments>http://bluehorn.co.nz/2011/07/29/symfony-2-is-released/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 00:47:21 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=604</guid>
		<description><![CDATA[The wait is over, Symfony 2 is released. Symfony2 is currently the most popular PHP project on Github (most forked and most watched overall) and the 12th most forked project for the whole Github platform. That's just astonishing! No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The wait is over, <a href="http://symfony.com/blog/symfony-2-0" target="_blank">Symfony 2 is released</a>.</p>
<blockquote><p>Symfony2 is currently the most <a href="https://github.com/languages/PHP">popular</a> PHP project on Github (most forked and most watched overall) and the <a href="https://github.com/popular/forked">12th</a> most forked project for the whole Github platform. That's just astonishing!</p></blockquote>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2011/07/29/symfony-2-is-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trying out Weebly</title>
		<link>http://bluehorn.co.nz/2011/02/22/trying-out-weebly/</link>
		<comments>http://bluehorn.co.nz/2011/02/22/trying-out-weebly/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 12:48:28 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Tests]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=601</guid>
		<description><![CDATA[Weebly is an online website builder. Out of curiosity I tried it out. Check out my weebly: Christchurch Food - Online Takeaway Delivery in Christchurch New Zealand. No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Weebly is an online website builder. Out of curiosity I tried it out. Check out my weebly: <a href="http://christchurch-food.weebly.com/" target="_blank">Christchurch Food - Online Takeaway Delivery in Christchurch New Zealand</a>.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2011/02/22/trying-out-weebly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dine In &#8211; Food at your fingertips</title>
		<link>http://bluehorn.co.nz/2011/01/25/dine-in-food-at-your-fingertips/</link>
		<comments>http://bluehorn.co.nz/2011/01/25/dine-in-food-at-your-fingertips/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 03:45:10 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Portfolios]]></category>
		<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=583</guid>
		<description><![CDATA[Dine In is a website for the food and drink industry in New Zealand. Dine In website features: online ordering, online payment (credit card processing), user review/rating, online menus, and much more. Dine In website enables people to order their lunch/dinner online via the Internet. No related posts. Related posts brought to you by Yet [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dinein.co.nz" target="_blank">Dine In</a> is a website for the food and drink industry in New Zealand. Dine In website features: online ordering, online payment (credit card processing), user review/rating, online menus, and much more. Dine In website enables people to order their lunch/dinner online via the Internet.</p>
<p style="text-align: center;"><a href="http://bluehorn.co.nz/wp-content/uploads/2011/01/dinein_website_shot.png" target="_blank"><img class="aligncenter size-thumbnail wp-image-584" style="border: 1px solid black;" title="Dine In - Food at your fingertips" src="http://bluehorn.co.nz/wp-content/uploads/2011/01/dinein_website_shot-150x150.png" alt="" width="150" height="150" /></a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2011/01/25/dine-in-food-at-your-fingertips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Whale Like Me &#8211; a website for whales</title>
		<link>http://bluehorn.co.nz/2011/01/25/whale-like-me-a-website-for-whales/</link>
		<comments>http://bluehorn.co.nz/2011/01/25/whale-like-me-a-website-for-whales/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 03:39:59 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Portfolios]]></category>
		<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=579</guid>
		<description><![CDATA[Whale Like Me is a website about whaling. The website is packed with features: documentary movie preview, donation (Paypal), mail subscription, competition, CMS, Facebook integration, invite friends, MailChimp integration, and more. No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.whalelikeme.com" target="_blank">Whale Like Me</a> is a website about whaling. The website is packed with features: documentary movie preview, donation (Paypal), mail subscription, competition, CMS, Facebook integration, invite friends, MailChimp integration, and more.</p>
<p style="text-align: center;"><a href="http://bluehorn.co.nz/wp-content/uploads/2011/01/wlm_website_shot.png" target="_blank"><img class="aligncenter size-thumbnail wp-image-581" style="border: 1px solid black;" title="Whale Like Me website" src="http://bluehorn.co.nz/wp-content/uploads/2011/01/wlm_website_shot-150x150.png" alt="" width="150" height="150" /></a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2011/01/25/whale-like-me-a-website-for-whales/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rempah &#8211; Authentic Malaysian Cuisine in Miramar, Wellington</title>
		<link>http://bluehorn.co.nz/2010/10/25/rempah-authentic-malaysian-cuisine-in-miramar-wellington/</link>
		<comments>http://bluehorn.co.nz/2010/10/25/rempah-authentic-malaysian-cuisine-in-miramar-wellington/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 04:09:07 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Portfolios]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=595</guid>
		<description><![CDATA[Rempah is a website for authentic Malaysian cuisine takeaway in Miramar, Wellington. Rempah website features slide show, online menus, inquiry form, online ordering and more. Rempah is powered by Dine In. No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rempah.co.nz" target="_blank">Rempah</a> is a website for authentic Malaysian cuisine takeaway in Miramar, Wellington. Rempah website features slide show, online menus, inquiry form, online ordering and more. Rempah is powered by <a href="http://www.dinein.co.nz" target="_blank">Dine In</a>.</p>
<p><a href="http://bluehorn.co.nz/wp-content/uploads/2011/01/rempah_web_shot.png"><img class="aligncenter size-thumbnail wp-image-596" title="Rempah - Spice for life - Authentic Malaysian Cuisine, Miramar, Wellington" src="http://bluehorn.co.nz/wp-content/uploads/2011/01/rempah_web_shot-150x150.png" alt="" width="150" height="150" /></a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/10/25/rempah-authentic-malaysian-cuisine-in-miramar-wellington/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tulsi &#8211; Contemporary Indian Cuisine</title>
		<link>http://bluehorn.co.nz/2010/09/25/tulsi-contemporary-indian-cuisine/</link>
		<comments>http://bluehorn.co.nz/2010/09/25/tulsi-contemporary-indian-cuisine/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 04:08:04 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Portfolios]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=591</guid>
		<description><![CDATA[Tulsi is an iconic award winning Indian restaurant (takeaway and bar) in Wellington with branches in Christchurch, Petone, Johnsonville and Miramar. Tulsi website features inquiry, booking, online ordering, online menus (as well as PDF downloads), CMS, and more. Tulsi website is powered by Dine In. No related posts. Related posts brought to you by Yet [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tulsi.co.nz" target="_blank">Tulsi</a> is an iconic award winning Indian restaurant (takeaway and bar) in Wellington with branches in Christchurch, Petone, Johnsonville and Miramar. Tulsi website features inquiry, booking, online ordering, online menus (as well as PDF downloads), CMS, and more. Tulsi website is powered by <a href="http://www.dinein.co.nz" target="_blank">Dine In</a>.</p>
<p style="text-align: center;"><a href="http://bluehorn.co.nz/wp-content/uploads/2011/01/tulsi_web_shot.png" target="_blank"><img class="aligncenter size-thumbnail wp-image-592" style="border: 1px solid black;" title="Tulsi - Contemporary Indian Cuisine (Wellington, New Zealand)" src="http://bluehorn.co.nz/wp-content/uploads/2011/01/tulsi_web_shot-150x150.png" alt="" width="150" height="150" /></a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/09/25/tulsi-contemporary-indian-cuisine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bubadub &#8211; The Original Baby Shower Guessing Game</title>
		<link>http://bluehorn.co.nz/2010/08/25/bubadub-the-original-baby-shower-guessing-game/</link>
		<comments>http://bluehorn.co.nz/2010/08/25/bubadub-the-original-baby-shower-guessing-game/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 03:58:36 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Portfolios]]></category>
		<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=586</guid>
		<description><![CDATA[Bubadub is the original online baby shower guessing game. Bubadub features: Paypal integration, multi currency conversion, interactive game, social network elements, and much more. No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bubadub.com" target="_blank">Bubadub</a> is the original online baby shower guessing game. Bubadub features: Paypal integration, multi currency conversion, interactive game, social network elements, and much more.</p>
<p style="text-align: center;"><a href="http://bluehorn.co.nz/wp-content/uploads/2011/01/bubadub_web_shot.png" target="_blank"><img class="aligncenter size-thumbnail wp-image-587" style="border: 1px solid black;" title="Bubadub - The Original Baby Shower Guessing Game" src="http://bluehorn.co.nz/wp-content/uploads/2011/01/bubadub_web_shot-150x150.png" alt="" width="150" height="150" /></a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/08/25/bubadub-the-original-baby-shower-guessing-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change CSRF attack message in Symfony 1.2</title>
		<link>http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/</link>
		<comments>http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 23:48:05 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=398</guid>
		<description><![CDATA[I wanted to change the symfony 1.2 CSRF attack message from "CSRF attack detected." to "This session has expired. Please return to the home page and try again.". The default scary error message is hard coded in sfValidatorCSRFToken.class.php like this: $this-&#62;addMessage&#40;'csrf_attack', 'CSRF attack detected.'&#41;; There aren't that many clues out there about how to change [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I wanted to change the symfony 1.2 CSRF attack message from "CSRF attack detected." to "This session has expired. Please return to the home page and try again.".</p>
<p><img src="http://bluehorn.co.nz/wp-content/uploads/2010/07/good_csrf_attack_message.png" alt="" title="good_csrf_attack_message" width="438" height="93" class="aligncenter size-full wp-image-402" /></p>
<p><span id="more-398"></span></p>
<p>The default scary error message is hard coded in sfValidatorCSRFToken.class.php like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addMessage</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'csrf_attack'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'CSRF attack detected.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>There aren't that many clues out there about how to change it without modifying the core class either. Kris Wallsmith (Symfony Release Manager) suggested I look at using event dispatcher. Then I found <a href="http://www.symfony-project.org/more-with-symfony/1_4/en/14-Playing-with-Symfony-Config-Cache" target="_blank">his article</a> on the net which gave me more clues.</p>
<p>So here's the solution that I ended up with. First let's create a listener class and save it in the project lib folder as myTemplateFilterParametersListener.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> myTemplateFilterParametersListener
<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> connect<span style="color: #009900;">&#40;</span>sfEventDispatcher <span style="color: #000088;">$dispatcher</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$dispatcher</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template.filter_parameters'</span><span style="color: #339933;">,</span>
      <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'filterParameters'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> filterParameters<span style="color: #009900;">&#40;</span>sfEvent <span style="color: #000088;">$event</span><span style="color: #339933;">,</span> <span style="color: #000088;">$parameters</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$parameters</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$name</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$param</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$param</span> instanceof sfForm<span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$form</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$param</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* @var $form sfForm */</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">changeCSRFErrorMessage</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$form</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$parameters</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> static <span style="color: #000000; font-weight: bold;">function</span> changeCSRFErrorMessage<span style="color: #009900;">&#40;</span>sfForm <span style="color: #000088;">$form</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$errors</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getErrorSchema</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getNamedErrors</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$errors</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$errors</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$error</span><span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">/* @var $error sfValidatorError */</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'_csrf_token'</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
          <span style="color: #000088;">$validator</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$error</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getValidator</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #666666; font-style: italic;">/* @var $validator sfValidatorCSRFToken */</span>
          <span style="color: #000088;">$validator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setMessage</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'csrf_attack'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'This session has expired. Please return to the home page and try again.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Then hook it to the event dispatcher in apps/frontend/config/frontendConfiguration.class.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> frontendConfiguration <span style="color: #000000; font-weight: bold;">extends</span> sfApplicationConfiguration
<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span>  initialize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$listener</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> myTemplateFilterParametersListener<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getConfigCache</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$listener</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dispatcher</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> configure<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>./symfony cc</p>
<p>That's it :)</p>
<p>Use Firebug to test it. Open your webpage containing the form, use Firebug to change the _csrf_token value to trigger CSRF attack error, and you should see "This session has expired. Please return to the home page and try again." error message.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in-symfony-1-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Can Symfony programmer flip like a ninja?</title>
		<link>http://bluehorn.co.nz/2010/07/05/can-symfony-programmer-flip-like-a-ninja/</link>
		<comments>http://bluehorn.co.nz/2010/07/05/can-symfony-programmer-flip-like-a-ninja/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 04:54:34 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Symfony Framework]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=396</guid>
		<description><![CDATA[Yes... A Symfony programmer, rekarnar, was doing a butterfly twist move No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Yes...</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/LTp8rioRl9M&amp;hl=en_US&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/LTp8rioRl9M&amp;hl=en_US&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>A Symfony programmer, <a href="http://www.rekarnar.com/blog" target="_blank">rekarnar</a>, was doing a butterfly twist move</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/07/05/can-symfony-programmer-flip-like-a-ninja/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sfSimpleGoogleSitemapPlugin</title>
		<link>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/</link>
		<comments>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 16:18:55 +0000</pubDate>
		<dc:creator>Sid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bluehorn.co.nz/?p=394</guid>
		<description><![CDATA[Just a thread where people can leave comments/discuss about sfSimpleGoogleSitemapPlugin, a Symfony plugin that I originally wrote more than a year ago. No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Just a thread where people can leave comments/discuss about <a href="http://www.symfony-project.org/plugins/sfSimpleGoogleSitemapPlugin" target="_blank">sfSimpleGoogleSitemapPlugin, a Symfony plugin</a> that I originally wrote more than a year ago.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://bluehorn.co.nz/2010/06/07/sfsimplegooglesitemapplugin/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

