<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>Web Powered</title><generator>Tumblr (3.0; @webpowered)</generator><link>http://webpowered.tumblr.com/</link><item><title>How to choose where to enable a plugin in symfony 1.x?</title><description>&lt;p&gt;In symfony 1.x, you can enable a plugin in the project configuration and in the each application.&lt;/p&gt; &lt;p&gt;A good rule of thumb could be to put common plugins in the project configuration, as they are shared accross all applications, and specific ones in the concerned applications&amp;#8230; but it&amp;#8217;s not!&lt;/p&gt; &lt;p&gt;In fact, some problems may occur with the symfony tasks as they use sometimes the first application they find, and sometimes no application at all, so most of the time the applications plugins are not available for command line tasks.&lt;/p&gt; &lt;p&gt;This is particularly annoying for &lt;code&gt;plugin:publish-assets&lt;/code&gt; which must publish the assets of all plugins, or &lt;code&gt;propel:build-model&lt;/code&gt; which needs the &lt;code&gt;schema.yml&lt;/code&gt; files of all plugins too.&lt;/p&gt; &lt;p&gt;So the true real good rule of thumb is to enable all the plugins needed by any task in the project configuration, and then to sort the remaining plugins following the first rule above.&lt;/p&gt;</description><link>http://webpowered.tumblr.com/post/4980835691</link><guid>http://webpowered.tumblr.com/post/4980835691</guid><pubDate>Wed, 27 Apr 2011 09:12:02 -0400</pubDate></item><item><title>Symfony 1.x - Route loading and evaluating order</title><description>&lt;p&gt;Routes are loaded and evaluated in this order:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;$routing-&amp;gt;prepend(&amp;#8230;) in Plugin&lt;/li&gt;
&lt;li&gt;$routing-&amp;gt;prepend(&amp;#8230;) in Application&lt;/li&gt;
&lt;li&gt;routing.yml in Plugin&lt;/li&gt;
&lt;li&gt;routing.yml in Application&lt;/li&gt;
&lt;li&gt;$routing-&amp;gt;append(&amp;#8230;) in Application&lt;/li&gt;
&lt;li&gt;$routing-&amp;gt;append(&amp;#8230;) in Plugin&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;If 2 routes match the same URL, the first one following this list will be chosen.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: connect() and append() are the same function&lt;/p&gt;</description><link>http://webpowered.tumblr.com/post/4609020694</link><guid>http://webpowered.tumblr.com/post/4609020694</guid><pubDate>Thu, 14 Apr 2011 12:17:44 -0400</pubDate></item><item><title>sfPropel15Plugin: Cannot redeclare echoln() (Previously declared in...</title><description>&lt;p&gt;The issue is discussed on the &lt;a href="https://github.com/fzaninotto/sfPropel15Plugin/issues/12"&gt;sfPropel15Plugin&lt;/a&gt; Github account.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;François Zaninotto&lt;/em&gt; closed it although it should considered as a &amp;#8220;won&amp;#8217;t fix&amp;#8221; as this is really a &lt;em&gt;Propel&lt;/em&gt; bug and not a &lt;em&gt;Symfony&lt;/em&gt; one.&lt;/p&gt;
&lt;p&gt;I think it is a &lt;em&gt;Propel&lt;/em&gt; as &lt;code&gt;PropelYAMLParser.php&lt;/code&gt; requires &lt;code&gt;sfYaml.php&lt;/code&gt; without class existence check.&lt;/p&gt;
&lt;p&gt;To temporally avoid this bug, &lt;code&gt;PropelYAMLParser.php&lt;/code&gt; must be copied to the &lt;code&gt;/lib&lt;/code&gt; directory of the Sf project and the require_once must be commented.&lt;/p&gt;
&lt;pre class="php"&gt;// require_once dirname(__FILE__).'/yaml/sfYaml.php';
&lt;/pre&gt;
&lt;p&gt;The &lt;em&gt;sfYaml&lt;/em&gt; class is then autoloaded by &lt;em&gt;Symfony&lt;/em&gt; only once.&lt;/p&gt;</description><link>http://webpowered.tumblr.com/post/4603751141</link><guid>http://webpowered.tumblr.com/post/4603751141</guid><pubDate>Thu, 14 Apr 2011 05:56:25 -0400</pubDate></item><item><title>Attribute - Property - Variable - Parameter - Argument</title><description>&lt;p&gt;Many differents words can name values and placeholders in programming languages.&lt;/p&gt;
&lt;p&gt;Here are the differences, with a simple PHP example.&lt;/p&gt;
&lt;p&gt;&lt;code&gt; &amp;lt;?php function first($a, $b) // parameters&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;{&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;  return $a;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$foo = new StdClass(); // variable&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$foo-&amp;gt;bar = 'baz'; // property&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;echo first(2, $foo); // arguments&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;// There is no real attribute in PHP&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$tmp = new SplFileInfo("/tmp");&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;echo $tmp-&amp;gt;isWritable(); // attribute (a metadata placed on an "object", not a property inside of it) &lt;/code&gt;&lt;/p&gt;</description><link>http://webpowered.tumblr.com/post/4581103421</link><guid>http://webpowered.tumblr.com/post/4581103421</guid><pubDate>Wed, 13 Apr 2011 12:25:26 -0400</pubDate></item><item><title>symfony plugin:publish-assets</title><description>&lt;p&gt;&lt;code&gt;plugin:publish-assets&lt;/code&gt; is environment dependant: symfony loads just the project configuration, and plugins enabled in the project are the only ones which get published.&lt;/p&gt;

&lt;p&gt;Nothing to do to change this.&lt;/p&gt;
&lt;p&gt;At all.&lt;/p&gt;</description><link>http://webpowered.tumblr.com/post/4232534959</link><guid>http://webpowered.tumblr.com/post/4232534959</guid><pubDate>Thu, 31 Mar 2011 09:19:05 -0400</pubDate></item><item><title>Propel error : "Duplicate table found: propel."</title><description>&lt;p&gt;Check if:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;a duplicate &lt;code&gt;schema.yml&lt;/code&gt; or &lt;code&gt;generated-schema.xml&lt;/code&gt; exists somewhere in your plugins&lt;/li&gt;
&lt;li&gt;an emplty &lt;code&gt;schema.yml&lt;/code&gt; or &lt;code&gt;generated-schema.xml&lt;/code&gt; exists somewhere&lt;/li&gt;
&lt;/ul&gt;</description><link>http://webpowered.tumblr.com/post/4184522484</link><guid>http://webpowered.tumblr.com/post/4184522484</guid><pubDate>Tue, 29 Mar 2011 10:20:48 -0400</pubDate></item></channel></rss>
