<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/wordpress-mu-1.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Implementing rich GUIs in Symfony</title>
	<link>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/</link>
	<description>Symfony, PHP and web development directly from the horse's mouth</description>
	<pubDate>Thu, 20 Nov 2008 16:38:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=wordpress-mu-1.0</generator>

	<item>
		<title>by: YASB - Yet Another Symfony Blog &#187; Blog Archive &#187; Followup: Creating rich GUIs with Javascript in Symfony</title>
		<link>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-157</link>
		<pubDate>Wed, 13 Jun 2007 10:08:16 +0000</pubDate>
		<guid>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-157</guid>
					<description>&lt;p&gt;[...] Well, I&#8217;ve written up a short summary of ideas relating to handling Javascript files in relation to requests, not it&#8217;s time to evaluate them. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] Well, I&#8217;ve written up a short summary of ideas relating to handling Javascript files in relation to requests, not it&#8217;s time to evaluate them. [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Krof Drakula</title>
		<link>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-68</link>
		<pubDate>Sat, 31 Mar 2007 08:08:58 +0000</pubDate>
		<guid>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-68</guid>
					<description>&lt;p&gt;Ah, my bad, yes, it's the controller.&lt;/p&gt;

&lt;p&gt;@Fet:
You are correct. Here, I'm assuming you're using Javascripts for most of the actions you're writing GUIs for, so the Javascrips would be different anyways. You could, for example, use the &lt;code&gt;view.yml&lt;/code&gt; to compound different Javascripts to form the GUI, if the GUI itself is modular and can be assembled like that. That way, you could have files assembled by the &lt;code&gt;view.yml&lt;/code&gt; file and not have to worry about it neither in the action nor the template itself.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ah, my bad, yes, it&#8217;s the controller.</p>
<p>@Fet:<br />
You are correct. Here, I&#8217;m assuming you&#8217;re using Javascripts for most of the actions you&#8217;re writing GUIs for, so the Javascrips would be different anyways. You could, for example, use the <code>view.yml</code> to compound different Javascripts to form the GUI, if the GUI itself is modular and can be assembled like that. That way, you could have files assembled by the <code>view.yml</code> file and not have to worry about it neither in the action nor the template itself.</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: ruzz</title>
		<link>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-66</link>
		<pubDate>Sat, 31 Mar 2007 00:07:48 +0000</pubDate>
		<guid>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-66</guid>
					<description>&lt;p&gt;oops. should really read other comments first ;)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>oops. should really read other comments first <img src='http://symfony.sopca.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
				</item>
	<item>
		<title>by: ruzz</title>
		<link>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-65</link>
		<pubDate>Sat, 31 Mar 2007 00:06:45 +0000</pubDate>
		<guid>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-65</guid>
					<description>&lt;p&gt;did i miss something :)&lt;/p&gt;

&lt;p&gt;public function executeSomeRichGuiAction() {
  $response = $this-&#62;getResponse();
  $response-&#62;addJavaScript(’some_rich_gui’);
}&lt;/p&gt;

&lt;p&gt;Okay, so we’re not bloating the view template. Excellent. One problem though - the model shouldn’t contain display logic. Ouch. Back to square one.&lt;/p&gt;

&lt;p&gt;that would be the controller not the model you're adding that to, no?&lt;/p&gt;

&lt;p&gt;even still, its ugly :P&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>did i miss something <img src='http://symfony.sopca.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>public function executeSomeRichGuiAction() {<br />
  $response = $this-&gt;getResponse();<br />
  $response-&gt;addJavaScript(’some_rich_gui’);<br />
}</p>
<p>Okay, so we’re not bloating the view template. Excellent. One problem though - the model shouldn’t contain display logic. Ouch. Back to square one.</p>
<p>that would be the controller not the model you&#8217;re adding that to, no?</p>
<p>even still, its ugly <img src='http://symfony.sopca.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
				</item>
	<item>
		<title>by: fet</title>
		<link>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-64</link>
		<pubDate>Fri, 30 Mar 2007 22:03:30 +0000</pubDate>
		<guid>http://symfony.sopca.com/2007/03/30/implementing-rich-guis-in-symfony/#comment-64</guid>
					<description>&lt;p&gt;&lt;cite&gt;the model shouldn’t contain display logic&lt;/cite&gt;
Action is a controller, not a model. ;)&lt;/p&gt;

&lt;p&gt;About your javascript file organization -- such convention would probably lead to duplication on the file level or (as a means of avoiding that) on the code level. Or did I get something wrong?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><cite>the model shouldn’t contain display logic</cite><br />
Action is a controller, not a model. <img src='http://symfony.sopca.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>About your javascript file organization &#8212; such convention would probably lead to duplication on the file level or (as a means of avoiding that) on the code level. Or did I get something wrong?</p>
]]></content:encoded>
				</item>
</channel>
</rss>
