<?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 for Destroy every zig!</title>
	<atom:link href="http://www.gerryvandermaesen.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gerryvandermaesen.com</link>
	<description>The official Gerry Vandermaesen blog</description>
	<lastBuildDate>Sun, 09 Oct 2011 12:45:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Sharing layouts cross-application in symfony by Gerry</title>
		<link>http://www.gerryvandermaesen.com/posts/sharing-layouts-cross-application-in-symfony/comment-page-1#comment-139</link>
		<dc:creator>Gerry</dc:creator>
		<pubDate>Sun, 09 Oct 2011 12:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=26#comment-139</guid>
		<description>@Throoze, yes it is possible. The proper way to do it is to create a plugin, allowing to enable a module in multiple apps. Check out http://www.symfony-project.org/gentle-introduction/1_4/en/17-Extending-Symfony#chapter_17_plug_ins</description>
		<content:encoded><![CDATA[<p>@Throoze, yes it is possible. The proper way to do it is to create a plugin, allowing to enable a module in multiple apps. Check out <a href="http://www.symfony-project.org/gentle-introduction/1_4/en/17-Extending-Symfony#chapter_17_plug_ins" rel="nofollow">http://www.symfony-project.org/gentle-introduction/1_4/en/17-Extending-Symfony#chapter_17_plug_ins</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sharing layouts cross-application in symfony by Throoze</title>
		<link>http://www.gerryvandermaesen.com/posts/sharing-layouts-cross-application-in-symfony/comment-page-1#comment-138</link>
		<dc:creator>Throoze</dc:creator>
		<pubDate>Sun, 09 Oct 2011 01:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=26#comment-138</guid>
		<description>Is there a way to use a component in a shared layout like this? how can i set up a shared module, let&#039;s say &quot;common&quot; to store my common components and partials?</description>
		<content:encoded><![CDATA[<p>Is there a way to use a component in a shared layout like this? how can i set up a shared module, let&#8217;s say &#8220;common&#8221; to store my common components and partials?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Relaying Doctrine events to symfony by Juanmf</title>
		<link>http://www.gerryvandermaesen.com/posts/relaying-doctrine-events-to-symfony/comment-page-1#comment-135</link>
		<dc:creator>Juanmf</dc:creator>
		<pubDate>Wed, 13 Jul 2011 19:47:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=117#comment-135</guid>
		<description>Nice! 
But then you should do this in every model.. not so DRY.. is it?
Is there any tweak you can do to relay them from just one point in the app?
and to enable it for DQL also? not just records...
Cheers!</description>
		<content:encoded><![CDATA[<p>Nice!<br />
But then you should do this in every model.. not so DRY.. is it?<br />
Is there any tweak you can do to relay them from just one point in the app?<br />
and to enable it for DQL also? not just records&#8230;<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on YeloPlayer by Just me</title>
		<link>http://www.gerryvandermaesen.com/posts/yeloplayer/comment-page-1#comment-106</link>
		<dc:creator>Just me</dc:creator>
		<pubDate>Fri, 11 Feb 2011 21:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=113#comment-106</guid>
		<description>Werkt ook met Firefox, best handig, maar ik mis nog steeds de &quot;stay on top&quot; functie</description>
		<content:encoded><![CDATA[<p>Werkt ook met Firefox, best handig, maar ik mis nog steeds de &#8220;stay on top&#8221; functie</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Organizing larger symfony projects with plugins by Glen</title>
		<link>http://www.gerryvandermaesen.com/posts/organizing-larger-symfony-projects-with-plugins/comment-page-1#comment-105</link>
		<dc:creator>Glen</dc:creator>
		<pubDate>Tue, 08 Feb 2011 10:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=98#comment-105</guid>
		<description>Thanks it works great !</description>
		<content:encoded><![CDATA[<p>Thanks it works great !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Returning your symfony form&#8217;s error schema as an array by bux</title>
		<link>http://www.gerryvandermaesen.com/posts/returning-your-symfony-forms-error-schema-as-an-array/comment-page-1#comment-100</link>
		<dc:creator>bux</dc:creator>
		<pubDate>Thu, 16 Dec 2010 10:40:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=95#comment-100</guid>
		<description>Et voilà une version un peu plus poussé que je vient de coder:

public static function transformErrorToSimpleArray($sfForm)
  {

    // Préparation des  variables
    $array = array();
    $embeddedForms = array();

    if ($sfForm instanceof sfFormObject)
    {
      // On stocke chacune des erreurs globales si il en existe
      foreach ($sfForm-&gt;getErrorSchema()-&gt;getGlobalErrors() as $id =&gt; $error)
      {
        $array[&#039;_global&#039;][] = $error-&gt;getMessage();
      }
    }

    // Pour chaque element du formulaire
    foreach ($sfForm as $id =&gt; $widget)
    {
      // si il y a plusieurs champs dans ce champ, on relance la
      // procédure pour les parcourir un a un
      if (count($sfForm[$id]) &gt; 1)
      {
        // On récupère le tableau
        $array_recursive = self::transformErrorToSimpleArray($sfForm[$id]);

        // si il contient des erreurs
        if (se::arrayContainsValue($array_recursive))
        {
          // On l&#039;ajoute au autres
          $array[$id] = $array_recursive;
        }
      }
      else
      {
        // Si c&#039;est un simple champs et qu&#039;il y a une erreur
        if (($error = $sfForm[$id]-&gt;getError()))
        {
          // On ajoute au tableau
          $array[$id] = $error-&gt;getMessage();
        }
      }

    }

    return $array;

  }</description>
		<content:encoded><![CDATA[<p>Et voilà une version un peu plus poussé que je vient de coder:</p>
<p>public static function transformErrorToSimpleArray($sfForm)<br />
  {</p>
<p>    // Préparation des  variables<br />
    $array = array();<br />
    $embeddedForms = array();</p>
<p>    if ($sfForm instanceof sfFormObject)<br />
    {<br />
      // On stocke chacune des erreurs globales si il en existe<br />
      foreach ($sfForm-&gt;getErrorSchema()-&gt;getGlobalErrors() as $id =&gt; $error)<br />
      {<br />
        $array['_global'][] = $error-&gt;getMessage();<br />
      }<br />
    }</p>
<p>    // Pour chaque element du formulaire<br />
    foreach ($sfForm as $id =&gt; $widget)<br />
    {<br />
      // si il y a plusieurs champs dans ce champ, on relance la<br />
      // procédure pour les parcourir un a un<br />
      if (count($sfForm[$id]) &gt; 1)<br />
      {<br />
        // On récupère le tableau<br />
        $array_recursive = self::transformErrorToSimpleArray($sfForm[$id]);</p>
<p>        // si il contient des erreurs<br />
        if (se::arrayContainsValue($array_recursive))<br />
        {<br />
          // On l&#8217;ajoute au autres<br />
          $array[$id] = $array_recursive;<br />
        }<br />
      }<br />
      else<br />
      {<br />
        // Si c&#8217;est un simple champs et qu&#8217;il y a une erreur<br />
        if (($error = $sfForm[$id]-&gt;getError()))<br />
        {<br />
          // On ajoute au tableau<br />
          $array[$id] = $error-&gt;getMessage();<br />
        }<br />
      }</p>
<p>    }</p>
<p>    return $array;</p>
<p>  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Returning your symfony form&#8217;s error schema as an array by bux</title>
		<link>http://www.gerryvandermaesen.com/posts/returning-your-symfony-forms-error-schema-as-an-array/comment-page-1#comment-99</link>
		<dc:creator>bux</dc:creator>
		<pubDate>Wed, 15 Dec 2010 18:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=95#comment-99</guid>
		<description>Pratique!
Dommage que ca ne gère pas les erreurs d&#039;embededForms.</description>
		<content:encoded><![CDATA[<p>Pratique!<br />
Dommage que ca ne gère pas les erreurs d&#8217;embededForms.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sharing layouts cross-application in symfony by GB</title>
		<link>http://www.gerryvandermaesen.com/posts/sharing-layouts-cross-application-in-symfony/comment-page-1#comment-92</link>
		<dc:creator>GB</dc:creator>
		<pubDate>Mon, 15 Nov 2010 18:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=26#comment-92</guid>
		<description>edit: worked :P</description>
		<content:encoded><![CDATA[<p>edit: worked <img src='http://www.gerryvandermaesen.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sharing layouts cross-application in symfony by GB</title>
		<link>http://www.gerryvandermaesen.com/posts/sharing-layouts-cross-application-in-symfony/comment-page-1#comment-91</link>
		<dc:creator>GB</dc:creator>
		<pubDate>Mon, 15 Nov 2010 18:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=26#comment-91</guid>
		<description>Didn&#039;t work
gives me template doesnt exist in &quot;&quot; error</description>
		<content:encoded><![CDATA[<p>Didn&#8217;t work<br />
gives me template doesnt exist in &#8220;&#8221; error</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Making template vars available in the layout by Gerry</title>
		<link>http://www.gerryvandermaesen.com/posts/making-template-vars-available-in-the-layout/comment-page-1#comment-58</link>
		<dc:creator>Gerry</dc:creator>
		<pubDate>Wed, 06 Oct 2010 13:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.gerryvandermaesen.com/?p=86#comment-58</guid>
		<description>I agree that you shouldn&#039;t resort to this type of solutions for everything. Slots certainly fill a need, and you should stick to them as much as possible.

However, sometimes I just want to check certain flags which can be set from inside the controller for rendering different HTML, or just assign a very simple value like an extra CSS class to the body element, and I feel slots are very (too?) verbose for such simple usecases.

I would like to revisit this one day and have namespaced parameter holders, in a way you could implement a $this-&gt;setGlobalVar(&#039;foo&#039;, true) in your actions for example.</description>
		<content:encoded><![CDATA[<p>I agree that you shouldn&#8217;t resort to this type of solutions for everything. Slots certainly fill a need, and you should stick to them as much as possible.</p>
<p>However, sometimes I just want to check certain flags which can be set from inside the controller for rendering different HTML, or just assign a very simple value like an extra CSS class to the body element, and I feel slots are very (too?) verbose for such simple usecases.</p>
<p>I would like to revisit this one day and have namespaced parameter holders, in a way you could implement a $this->setGlobalVar(&#8216;foo&#8217;, true) in your actions for example.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

