<?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>Midnight Oil &#187; Symfony</title>
	<atom:link href="http://tech.rehaniftikhar.com/category/symfony/feed" rel="self" type="application/rss+xml" />
	<link>http://tech.rehaniftikhar.com</link>
	<description>Losing sleep on Open Source Software</description>
	<lastBuildDate>Tue, 03 Nov 2009 18:24:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Breaking down the insurmountable task of writing legacy tests in Symfony</title>
		<link>http://tech.rehaniftikhar.com/symfony/breaking-down-the-insurmountable-task-of-writing-legacy-tests-in-symfony</link>
		<comments>http://tech.rehaniftikhar.com/symfony/breaking-down-the-insurmountable-task-of-writing-legacy-tests-in-symfony#comments</comments>
		<pubDate>Tue, 03 Nov 2009 18:24:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://tech.rehaniftikhar.com/?p=37</guid>
		<description><![CDATA[If you&#8217;ve inherited an application written with the Symfony framework that doesn&#8217;t include functional tests (or you just plain didn&#8217;t write them to being with) it can seem like an insurmountable task to create any significant level of code coverage. I found myself in this position and felt overwhelmed by the task ahead of me.
Heeding [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve inherited an application written with the <a href="http://www.symfony-project.org/" target="_blank">Symfony</a> framework that doesn&#8217;t include functional tests (or you just plain didn&#8217;t write them to being with) it can seem like an insurmountable task to create any significant level of <a href="http://en.wikipedia.org/wiki/Code_coverage" target="_blank">code coverage</a>. I found myself in this position and felt overwhelmed by the task ahead of me.</p>
<p>Heeding the advice of my productivity guru: &#8220;don&#8217;t bite off more than you can chew&#8221; (thanks ma!), I used the following grep sequence to generate some organic milestones. Now I know the number of actions per module</p>
<p><code>grep -c "function execute[A-Z]" apps/frontend/ -R | grep ".php:" | grep -v ":0$" | grep -v "components.class.php"<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.rehaniftikhar.com/symfony/breaking-down-the-insurmountable-task-of-writing-legacy-tests-in-symfony/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent Symfony from &#8216;formatting&#8217; request parameters</title>
		<link>http://tech.rehaniftikhar.com/symfony/prevent-symfony-from-formatting-request-parameters</link>
		<comments>http://tech.rehaniftikhar.com/symfony/prevent-symfony-from-formatting-request-parameters#comments</comments>
		<pubDate>Tue, 15 Sep 2009 17:55:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://tech.rehaniftikhar.com/?p=25</guid>
		<description><![CDATA[I&#8217;ve been using Symfony for 2 years and I always though their formatting of routes was really cool. For example, if you want to generate a link to a specific action, you&#8217;d do something like this:
&#60;?php
echo link_to('Name of Link', '@route_to_action?param1=value1&#38;param2=value2');
And it would generate something like this:
&#60;a href="/module/action/param1/value1/param2/value2"&#62;Name of Link&#60;/a&#62;
However, for the first time, I found [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Symfony for 2 years and I always though their formatting of routes was really cool. For example, if you want to generate a link to a specific action, you&#8217;d do something like this:</p>
<pre>&lt;?php
echo link_to('Name of Link', '@route_to_action?param1=value1&amp;param2=value2');</pre>
<p>And it would generate something like this:</p>
<pre>&lt;a href="/module/action/param1/value1/param2/value2"&gt;Name of Link&lt;/a&gt;</pre>
<p>However, for the first time, I found myself NOT wanting this behavior. I wanted:</p>
<pre>&lt;a href="/module/action?param1=value1&amp;param2=value2"&gt;Name of Link&lt;/a&gt;</pre>
<p>I looked high and low, on and off for a few days. I finally found something in the forums, with a note saying it <strong>should</strong> be in the <a href="http://www.symfony-project.org/api/1_2/UrlHelper#method_link_to" target="_blank">documentation</a>, but isn&#8217;t.</p>
<pre>&lt;?php
echo link_to('Name of Link', '@route_to_action', array('query_string' =&gt; 'param1=value1&amp;param2=value2');</pre>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 103px; width: 1px; height: 1px;"><span class="small">64670 be<br />
</span></div>
]]></content:encoded>
			<wfw:commentRss>http://tech.rehaniftikhar.com/symfony/prevent-symfony-from-formatting-request-parameters/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
