<?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 on: crossing the mvc divide, kohana and zend style</title>
	<atom:link href="http://blog.dewaldbotha.co.za/2009/01/23/crossing-the-mvc-divide-kohana-and-zend-style/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dewaldbotha.co.za/2009/01/23/crossing-the-mvc-divide-kohana-and-zend-style/</link>
	<description></description>
	<lastBuildDate>Wed, 01 Jul 2009 06:07:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: dewaldbotha</title>
		<link>http://blog.dewaldbotha.co.za/2009/01/23/crossing-the-mvc-divide-kohana-and-zend-style/comment-page-1/#comment-16</link>
		<dc:creator>dewaldbotha</dc:creator>
		<pubDate>Wed, 01 Jul 2009 06:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dewaldbotha.co.za/2009-01-23/crossing-the-mvc-divide-kohana-and-zend-style/#comment-16</guid>
		<description>@Aaron You can check for a logged in flag in the view, but now, say you want to add that form to one or more views, you have to copy that code in all relevant views.

So with the above solution, you can have that piece of code in one central place and then just call &lt;?php echo $this-&gt;template-&gt;partial = new View(&#039;log/generateform&#039;);?&gt;, which will allow for easy an easy reusable component that can be used in multiple views.</description>
		<content:encoded><![CDATA[<p>@Aaron You can check for a logged in flag in the view, but now, say you want to add that form to one or more views, you have to copy that code in all relevant views.</p>
<p>So with the above solution, you can have that piece of code in one central place and then just call < ?php echo $this->template->partial = new View(&#8216;log/generateform&#8217;);?>, which will allow for easy an easy reusable component that can be used in multiple views.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://blog.dewaldbotha.co.za/2009/01/23/crossing-the-mvc-divide-kohana-and-zend-style/comment-page-1/#comment-15</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dewaldbotha.co.za/2009-01-23/crossing-the-mvc-divide-kohana-and-zend-style/#comment-15</guid>
		<description>try that again:

[html]
[head]
	[title] [?= $page-&gt;title ?] [/title]
[/head]
[body]
	[?= $page-&gt;heading ?]

	[!-- conditionally displayed content --]
	[? if ( $user-&gt;is_logged_in() ): ?]
		Hello, $user-&gt;name
	[? else: ?]
		[form]
		username: [input name=&quot;username&quot;]
		password: [input name=&quot;password&quot;]
		[/form]
	[? endif ?]

	[!-- common content --]

	[?= $page-&gt;footer ?]
[/body]
[/html]</description>
		<content:encoded><![CDATA[<p>try that again:</p>
<p>[html]<br />
[head]<br />
	[title] [?= $page-&gt;title ?] [/title]<br />
[/head]<br />
[body]<br />
	[?= $page-&gt;heading ?]</p>
<p>	[!-- conditionally displayed content --]<br />
	[? if ( $user-&gt;is_logged_in() ): ?]<br />
		Hello, $user-&gt;name<br />
	[? else: ?]<br />
		[form]<br />
		username: [input name="username"]<br />
		password: [input name="password"]<br />
		[/form]<br />
	[? endif ?]</p>
<p>	[!-- common content --]</p>
<p>	[?= $page-&gt;footer ?]<br />
[/body]<br />
[/html]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://blog.dewaldbotha.co.za/2009/01/23/crossing-the-mvc-divide-kohana-and-zend-style/comment-page-1/#comment-14</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dewaldbotha.co.za/2009-01-23/crossing-the-mvc-divide-kohana-and-zend-style/#comment-14</guid>
		<description>I don&#039;t see why you couldn&#039;t determine if the user is logged in in your controller and then check the flag in your view?



	 title ?&gt;


	heading ?&gt;

	&lt;!-- conditional content --&gt;
	is_logged_in() ): ?&gt;
		Hello, $user-&gt;name


		username:
		password:



	&lt;!-- common content --&gt;

	footer ?&gt;</description>
		<content:encoded><![CDATA[<p>I don&#8217;t see why you couldn&#8217;t determine if the user is logged in in your controller and then check the flag in your view?</p>
<p>	 title ?&gt;</p>
<p>	heading ?&gt;</p>
<p>	<!-- conditional content --><br />
	is_logged_in() ): ?&gt;<br />
		Hello, $user-&gt;name</p>
<p>		username:<br />
		password:</p>
<p>	<!-- common content --></p>
<p>	footer ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dewaldbotha</title>
		<link>http://blog.dewaldbotha.co.za/2009/01/23/crossing-the-mvc-divide-kohana-and-zend-style/comment-page-1/#comment-13</link>
		<dc:creator>dewaldbotha</dc:creator>
		<pubDate>Mon, 26 Jan 2009 12:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dewaldbotha.co.za/2009-01-23/crossing-the-mvc-divide-kohana-and-zend-style/#comment-13</guid>
		<description>yip - i must admit that i&#039;ve only started reading up on django this morning, but from what i&#039;ve seen so far it seems like a pretty competent framework compared to others such as pylons.

as for the mvc and presentation/action logic issue,  i guess i just needed that bit of reassurance -

but alas, for know, i&#039;m looking deep into the chapters of my &#039;dive into python&#039; book</description>
		<content:encoded><![CDATA[<p>yip &#8211; i must admit that i&#8217;ve only started reading up on django this morning, but from what i&#8217;ve seen so far it seems like a pretty competent framework compared to others such as pylons.</p>
<p>as for the mvc and presentation/action logic issue,  i guess i just needed that bit of reassurance -</p>
<p>but alas, for know, i&#8217;m looking deep into the chapters of my &#8216;dive into python&#8217; book</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stii</title>
		<link>http://blog.dewaldbotha.co.za/2009/01/23/crossing-the-mvc-divide-kohana-and-zend-style/comment-page-1/#comment-12</link>
		<dc:creator>Stii</dc:creator>
		<pubDate>Mon, 26 Jan 2009 12:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dewaldbotha.co.za/2009-01-23/crossing-the-mvc-divide-kohana-and-zend-style/#comment-12</guid>
		<description>Rails are heavy action driven (i.e. the view dictates the presentation logic, AFAIK), so it is quite different from Kohana/Django in that respect. Yet Rails are the acme of mvc frameworks in many people&#039;s eye! I think the issue are not being pressed since it is not really that big a deal. As long as the basic principles are being followed, its okay.

Keep in mind that Django is considered an MVT (Model-View-Template) framework and not MVC, which does make it different.</description>
		<content:encoded><![CDATA[<p>Rails are heavy action driven (i.e. the view dictates the presentation logic, AFAIK), so it is quite different from Kohana/Django in that respect. Yet Rails are the acme of mvc frameworks in many people&#8217;s eye! I think the issue are not being pressed since it is not really that big a deal. As long as the basic principles are being followed, its okay.</p>
<p>Keep in mind that Django is considered an MVT (Model-View-Template) framework and not MVC, which does make it different.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dewaldbotha</title>
		<link>http://blog.dewaldbotha.co.za/2009/01/23/crossing-the-mvc-divide-kohana-and-zend-style/comment-page-1/#comment-11</link>
		<dc:creator>dewaldbotha</dc:creator>
		<pubDate>Sun, 25 Jan 2009 18:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dewaldbotha.co.za/2009-01-23/crossing-the-mvc-divide-kohana-and-zend-style/#comment-11</guid>
		<description>thanks for the syntax check and feedback - (i&#039;ll blame it on the wordpress devils) - :-)

i agree with your point of keeping within a framework - especially if you have to make changes to some core functions for it to work for you -  then you are most probably using it wrong.

i&#039;m just contemplating the fact that i&#039;ve never really found too much write-up on the whole issue of using the view in a framework to decide on the actual presentation logic, and i must say i quite agree with the django approach of not setting variables within a template, since it kind of defies the point of mvc -

but who knows, maybe i&#039;ll start a whole drive and convice people otherwise in the whole action/view debacle of january 2009</description>
		<content:encoded><![CDATA[<p>thanks for the syntax check and feedback &#8211; (i&#8217;ll blame it on the wordpress devils) &#8211; <img src='http://blog.dewaldbotha.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>i agree with your point of keeping within a framework &#8211; especially if you have to make changes to some core functions for it to work for you &#8211;  then you are most probably using it wrong.</p>
<p>i&#8217;m just contemplating the fact that i&#8217;ve never really found too much write-up on the whole issue of using the view in a framework to decide on the actual presentation logic, and i must say i quite agree with the django approach of not setting variables within a template, since it kind of defies the point of mvc -</p>
<p>but who knows, maybe i&#8217;ll start a whole drive and convice people otherwise in the whole action/view debacle of january 2009</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stii</title>
		<link>http://blog.dewaldbotha.co.za/2009/01/23/crossing-the-mvc-divide-kohana-and-zend-style/comment-page-1/#comment-10</link>
		<dc:creator>Stii</dc:creator>
		<pubDate>Sun, 25 Jan 2009 17:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dewaldbotha.co.za/2009-01-23/crossing-the-mvc-divide-kohana-and-zend-style/#comment-10</guid>
		<description>Personally, I&#039;m not one to get all anal about so called principals. IMHO, that&#039;s okay! I cannot see it overstepping mvc principals in principal.

On a different note, a framework like Django don&#039;t even allow you to set variables in templates, never mind calling actions in templates! See: http://code.djangoproject.com/ticket/1322 where someone requested a feature to set variables in a template. It was outright closed with a &quot;won&#039;t fix&quot; reason. Yet, I consider Django one of the best frameworks around.

The important factor is that you can get it to work for you within the boundaries of the framework. As soon as you need to make changes to the core of the framework (i.e. the source maintained by the community) it hampers future upgrades and defeats the purpose of using a framework of any kind (i.e. have a community of developers maintain some of the code of your project).

$dispatch-&gt;method(generateForm&#039;); You forgot an &#039; before generateForm. ;-) (me being anal :P)</description>
		<content:encoded><![CDATA[<p>Personally, I&#8217;m not one to get all anal about so called principals. IMHO, that&#8217;s okay! I cannot see it overstepping mvc principals in principal.</p>
<p>On a different note, a framework like Django don&#8217;t even allow you to set variables in templates, never mind calling actions in templates! See: <a href="http://code.djangoproject.com/ticket/1322" rel="nofollow">http://code.djangoproject.com/ticket/1322</a> where someone requested a feature to set variables in a template. It was outright closed with a &#8220;won&#8217;t fix&#8221; reason. Yet, I consider Django one of the best frameworks around.</p>
<p>The important factor is that you can get it to work for you within the boundaries of the framework. As soon as you need to make changes to the core of the framework (i.e. the source maintained by the community) it hampers future upgrades and defeats the purpose of using a framework of any kind (i.e. have a community of developers maintain some of the code of your project).</p>
<p>$dispatch-&gt;method(generateForm&#8217;); You forgot an &#8216; before generateForm. <img src='http://blog.dewaldbotha.co.za/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  (me being anal <img src='http://blog.dewaldbotha.co.za/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
</channel>
</rss>

