<?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>UDFI, LLC &#187; symfony</title>
	<atom:link href="http://www.udfi.biz/category/technology/symfony/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.udfi.biz</link>
	<description>High Tech on the East Coast</description>
	<lastBuildDate>Tue, 23 Aug 2011 18:11:03 +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>Thoughts on switching from symfony to codeigniter</title>
		<link>http://www.udfi.biz/2010/01/thoughts-on-switching-from-symfony-to-codeigniter/</link>
		<comments>http://www.udfi.biz/2010/01/thoughts-on-switching-from-symfony-to-codeigniter/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 16:38:06 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=199</guid>
		<description><![CDATA[So i&#8217;ve been a long time fan of symfony, and have used it quite regularly on large projects.  It&#8217;s been pretty good and has helped me developed sites rather quickly.  However, i&#8217;ve felt that the framework has been getting too &#8230; <a href="http://www.udfi.biz/2010/01/thoughts-on-switching-from-symfony-to-codeigniter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So i&#8217;ve been a long time fan of symfony, and have used it quite regularly on large projects.  It&#8217;s been pretty good and has helped me developed sites rather quickly.  However, i&#8217;ve felt that the framework has been getting too large and effecting performance, and recently they&#8217;ve also decided to switch to the Doctrine ORM, which i&#8217;ve found very unreliable for large data sets. For these reasons i&#8217;ve decided to switch to the codeigniter framework on my latest project and i&#8217;ve been quite happy with the results.</p>
<p>First, the code igniter framework is a lot less code than symfony (and much easier to install).   The result it seems, is a faster snappier website.  Additionally, digging through the code igniter framework to see what&#8217;s going on, is 10x easier than going through the symfony framework base code.  I know some ppl will argue that the caching on symfony should make it just as fast, but honestly, I dont see it.  I&#8217;ve tried many different caching strategies that they outline online and in the forums, but code igniter&#8217;s simple view template strategy seems much faster.</p>
<p>Code igniter currently doesn&#8217;t come with a default ORM.  Because of the lack of an ORM, pulling data from the database is much faster compared to Doctrine&#8217;s access.  I was running a 4million record database that linked to a 2 million record database.  Doctrine pretty much puked on this.  I haven&#8217;t seen an issue yet with this with the Code igniter database class.  I think the many abstraction layers that Doctrine has results in unnecessary classes which leads to slower results access and increases the chances of memory leaks.  Say what you may, but these are the results that i&#8217;ve found for my website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2010/01/thoughts-on-switching-from-symfony-to-codeigniter/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>handling checkboxes in symfony forms 1.2</title>
		<link>http://www.udfi.biz/2009/08/handling-checkboxes-in-symfony-forms-1-2/</link>
		<comments>http://www.udfi.biz/2009/08/handling-checkboxes-in-symfony-forms-1-2/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 15:41:54 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=172</guid>
		<description><![CDATA[Checkboxes aren&#8217;t really covered in the tutorial for forms in 1.2.  However, it&#8217;s covered pretty well on the blog over here: http://www.symfony-project.org/blog/2008/10/14/new-in-symfony-1-2-make-your-choice One thing to note:  if you need a multiple checkboxes for one value (in php it&#8217;s handled like &#8230; <a href="http://www.udfi.biz/2009/08/handling-checkboxes-in-symfony-forms-1-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Checkboxes aren&#8217;t really covered in the tutorial for forms in 1.2.  However, it&#8217;s covered pretty well on the blog over here:</p>
<p><a href="http://www.symfony-project.org/blog/2008/10/14/new-in-symfony-1-2-make-your-choice">http://www.symfony-project.org/blog/2008/10/14/new-in-symfony-1-2-make-your-choice</a></p>
<p>One thing to note:  if you need a multiple checkboxes for one value (in php it&#8217;s handled like so: varname[]), you would use the sfWidgetFormChoice with the multiple=&gt;true and expanded=&gt;true.</p>
<p>Also, if it&#8217;s an array of values, use sfValidatorChoiceMany instead of sfValidatorChoice.</p>
<p>-d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2009/08/handling-checkboxes-in-symfony-forms-1-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>escaping output in symfony &#8211; wtf is going on????</title>
		<link>http://www.udfi.biz/2009/08/escaping-output-in-symfony-wtf-is-going-on/</link>
		<comments>http://www.udfi.biz/2009/08/escaping-output-in-symfony-wtf-is-going-on/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 14:19:14 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=168</guid>
		<description><![CDATA[Ok, I was a little confused as to what the hell was happening when I escaped my output in symfony.  It looks like the 1.2 framework takes all your values and objectifies them, putting them into classes.  For your arrays, &#8230; <a href="http://www.udfi.biz/2009/08/escaping-output-in-symfony-wtf-is-going-on/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, I was a little confused as to what the hell was happening when I escaped my output in symfony.  It looks like the 1.2 framework takes all your values and objectifies them, putting them into classes.  For your arrays, they go into sfOutputEscaperArrayDecorator.</p>
<p>What this means is that now when you are trying to use the array in a view, you need to call the getRaw function that sfOutputEscaperArrayDecorator has.  SO:</p>
<p>in your action:</p>
<p>$my_array = array(1,2,3,4);</p>
<p>in your view print_r($my_array) will throw in error.  what you need to do instead is:</p>
<p>print_r($my_array-&gt;getRawValue());</p>
<p>I haven&#8217;t tested the rest of the objects out, but im assuming you can get the actual object by calling getRaw() on the variable name.</p>
<p>-d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2009/08/escaping-output-in-symfony-wtf-is-going-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>symfony forms 1.2:  adding multiple postvalidators</title>
		<link>http://www.udfi.biz/2009/08/symfony-forms-1-2-adding-multiple-postvalidators/</link>
		<comments>http://www.udfi.biz/2009/08/symfony-forms-1-2-adding-multiple-postvalidators/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 20:45:06 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=158</guid>
		<description><![CDATA[Here&#8217;s a tip for the symfony folks: adding multiple postvalidators: $this-&#62;validatorSchema-&#62;setPostValidator(new sfValidatorSchemaCompare(&#8216;password&#8217;, sfValidatorSchemaCompare::EQUAL, &#8216;password_again&#8217;, array(), array(&#8216;invalid&#8217;=&#62; &#8216;Password and Password Again do not match.&#8217;))); $this-&#62;mergePostValidator(new sfValidatorSchemaCompare(&#8216;email&#8217;, sfValidatorSchemaCompare::EQUAL, &#8216;email_again&#8217;, array(), array(&#8216;invalid&#8217;=&#62; &#8216;Email and Email Again do not match.&#8217;))); If you use sfValidatorAnd &#8230; <a href="http://www.udfi.biz/2009/08/symfony-forms-1-2-adding-multiple-postvalidators/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a tip for the symfony folks:</p>
<p>adding multiple postvalidators:</p>
<blockquote><p>$this-&gt;validatorSchema-&gt;setPostValidator(new sfValidatorSchemaCompare(&#8216;password&#8217;, sfValidatorSchemaCompare::EQUAL, &#8216;password_again&#8217;, array(), array(&#8216;invalid&#8217;=&gt; &#8216;Password and Password Again do not match.&#8217;)));<br />
$this-&gt;mergePostValidator(new sfValidatorSchemaCompare(&#8216;email&#8217;, sfValidatorSchemaCompare::EQUAL, &#8216;email_again&#8217;, array(), array(&#8216;invalid&#8217;=&gt; &#8216;Email and Email Again do not match.&#8217;)));</p>
</blockquote>
<p>If you use sfValidatorAnd in your forms, the individual error messages no longer matter.  The error message of the sfValidatorAnd is used instead.</p>
<blockquote><p>&#8216;email&#8217;             =&gt; new sfValidatorAnd(array(<br />
new sfValidatorString(array(&#8216;max_length&#8217; =&gt; 60)),<br />
new sfValidatorEmail()), array(), array(&#8216;required&#8217;=&gt;&#8217;Email is required.&#8217;, &#8216;invalid&#8217;=&gt;&#8217;Email is invalid.&#8217;)),</p>
</blockquote>
<p>Finally, to get to all the errors in the form:</p>
<blockquote><p>$form-&gt;getErrorSchema()-&gt;getErrors()</p>
</blockquote>
<p>to get to all the global errors in the form:</p>
<blockquote><p>$form-&gt;getGlobalErrors()</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2009/08/symfony-forms-1-2-adding-multiple-postvalidators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>symfony error: Duplicate table found: propel</title>
		<link>http://www.udfi.biz/2009/08/symfony-error-duplicate-table-found-propel/</link>
		<comments>http://www.udfi.biz/2009/08/symfony-error-duplicate-table-found-propel/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 17:37:54 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=155</guid>
		<description><![CDATA[Some problems occurred when executing the task: build-propel.xml:479:1: Duplicate table found: propel. build-propel.xml:465:121: Execution of the target buildfile failed. Aborting. If the exception message is not clear enough, read the output of the task for more information So when you&#8217;re &#8230; <a href="http://www.udfi.biz/2009/08/symfony-error-duplicate-table-found-propel/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>Some problems occurred when executing the task:<br />
build-propel.xml:479:1: Duplicate table found: propel.<br />
build-propel.xml:465:121: Execution of the target buildfile failed. Aborting.<br />
If the exception message is not clear enough, read the output of the task for more information</p></blockquote>
<p>So when you&#8217;re reverse engineering a database schema, you&#8217;ll likely get this error if you have plugins installed and you try to do a propel:build-model.  For instance, if you have a an existing database and you&#8217;re doing a ./symfony propel:build-schema, it will go in and create a new schema.yml for you.  But, you have tables in there that the plugins will take care of, so there will be a conflict.  To fix this, you should go into the generated schema.yml and clear out the additional tables.  Then run the build-model again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2009/08/symfony-error-duplicate-table-found-propel/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

