<?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"
	>
<channel>
	<title>Comments on: AkCom: The Akrabat Components for the Zend Framework</title>
	<atom:link href="http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/</link>
	<description>Developing PHP and XUL Software in the Real World</description>
	<pubDate>Thu, 28 Aug 2008 14:07:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-4907</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Wed, 30 Aug 2006 09:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-4907</guid>
		<description>Hi Geoffrey,

Exactly. right. $this-&gt;_siteView is used for the "outer" html template and $this-&gt;_view is used for the action template.

The "outer" template is called site.tpl.php which has:
&lt;pre class="phpcode"&gt;&lt;br /&gt;&lt;span style="color: #0000BB"&gt;&#60;?php&#160;&lt;/span&gt;&lt;span style="color: #007700"&gt;echo&#160;&lt;/span&gt;&lt;span style="color: #0000BB"&gt;$this&lt;/span&gt;&lt;span style="color: #007700"&gt;-&#62;&lt;/span&gt;&lt;span style="color: #0000BB"&gt;actionOutput&#160;&lt;/span&gt;&lt;span style="color: #007700"&gt;;&lt;/span&gt;&lt;span style="color: #0000BB"&gt;?&#62;&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

within it.

Mainly to allow separation of concerns. Not sure that it's really necessary though...</description>
		<content:encoded><![CDATA[<p>Hi Geoffrey,</p>
<p>Exactly. right. $this->_siteView is used for the "outer" html template and $this->_view is used for the action template.</p>
<p>The "outer" template is called site.tpl.php which has:</p>
<pre class="phpcode">
<span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">actionOutput&nbsp;</span><span style="color: #007700">;</span><span style="color: #0000BB">?&gt;
</span>
</pre>
<p>within it.</p>
<p>Mainly to allow separation of concerns. Not sure that it's really necessary though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geoffrey</title>
		<link>http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-4906</link>
		<dc:creator>geoffrey</dc:creator>
		<pubDate>Wed, 30 Aug 2006 09:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-4906</guid>
		<description>crappy html, I meant something like: http://fashion.hosmoz.net/public/ext/akcom.phps</description>
		<content:encoded><![CDATA[<p>crappy html, I meant something like: <a href="http://fashion.hosmoz.net/public/ext/akcom.phps" rel="nofollow">http://fashion.hosmoz.net/public/ext/akcom.phps</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geoffrey</title>
		<link>http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-4905</link>
		<dc:creator>geoffrey</dc:creator>
		<pubDate>Wed, 30 Aug 2006 09:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-4905</guid>
		<description>Hi there, looking for the graal of view rendering automation, I ended up on your overpowered version of Controller_Action. That said, there's one thing I do not understand: why do you have two different instances of Zend_View ? :&#124;

After re-re-re-reading your code, it seems like _view renders only the action part, which is echoed somewhere in the siteTemplate rendered by _siteView, like in:



Your site name
actionOutput; ?&#62;



Thus, siteView, would be some kind of wrapper to add headers and footers.

Did I understand well ?</description>
		<content:encoded><![CDATA[<p>Hi there, looking for the graal of view rendering automation, I ended up on your overpowered version of Controller_Action. That said, there's one thing I do not understand: why do you have two different instances of Zend_View ? :|</p>
<p>After re-re-re-reading your code, it seems like _view renders only the action part, which is echoed somewhere in the siteTemplate rendered by _siteView, like in:</p>
<p>Your site name<br />
actionOutput; ?&gt;</p>
<p>Thus, siteView, would be some kind of wrapper to add headers and footers.</p>
<p>Did I understand well ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2681</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Mon, 24 Jul 2006 21:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2681</guid>
		<description>The processing of the login only needs to be in one module/action. I would probably create a view helper to display the login box.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>The processing of the login only needs to be in one module/action. I would probably create a view helper to display the login box.</p>
<p>Regards,</p>
<p>Rob&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flo</title>
		<link>http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2677</link>
		<dc:creator>flo</dc:creator>
		<pubDate>Mon, 24 Jul 2006 19:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2677</guid>
		<description>hi again!

i have a little problem. particularly with a login module. but the problem is the same with all modules that are incorporated in main site and need a little php pre-processing.

so... my login module is up there on every page of the site (every controller/action). what i can do (and i did for now...) is to put a loginAction method in each controller with same PHP code and _forward from each action inside the controller to 'login' action. it's ugly but it works. in this case.

but in a complex application, in which might be 5-10 of these independent persistent modules, what can i do ? maybe u have a clean, simple solution.

thanks.</description>
		<content:encoded><![CDATA[<p>hi again!</p>
<p>i have a little problem. particularly with a login module. but the problem is the same with all modules that are incorporated in main site and need a little php pre-processing.</p>
<p>so&#8230; my login module is up there on every page of the site (every controller/action). what i can do (and i did for now&#8230;) is to put a loginAction method in each controller with same PHP code and _forward from each action inside the controller to 'login' action. it's ugly but it works. in this case.</p>
<p>but in a complex application, in which might be 5-10 of these independent persistent modules, what can i do ? maybe u have a clean, simple solution.</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2645</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Sun, 23 Jul 2006 21:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2645</guid>
		<description>Only just got to my email. I'm glad you sorted it! 

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Only just got to my email. I'm glad you sorted it! </p>
<p>Regards,</p>
<p>Rob&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flo</title>
		<link>http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2644</link>
		<dc:creator>flo</dc:creator>
		<pubDate>Sun, 23 Jul 2006 20:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2644</guid>
		<description>sory... i messed it up. i found what i was doing wrong. u should delete theese 2 posts. my bad :D</description>
		<content:encoded><![CDATA[<p>sory&#8230; i messed it up. i found what i was doing wrong. u should delete theese 2 posts. my bad :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flo</title>
		<link>http://akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2640</link>
		<dc:creator>flo</dc:creator>
		<pubDate>Sun, 23 Jul 2006 19:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.akrabat.com/2006/07/20/akcom-the-akrabat-components-for-the-zend-framework/#comment-2640</guid>
		<description>hello, rob!

i'm using your new Controller/ files, and i get an error on app/views/site.tpl.php when i try rendering main content
  $this-&#62;render($this-&#62;Templates-&#62;content) (that's how it worked with your old files from Test Code 3 i think).

so can you tell me how should i use it correctly ?

thanks.</description>
		<content:encoded><![CDATA[<p>hello, rob!</p>
<p>i'm using your new Controller/ files, and i get an error on app/views/site.tpl.php when i try rendering main content<br />
  $this-&gt;render($this-&gt;Templates-&gt;content) (that's how it worked with your old files from Test Code 3 i think).</p>
<p>so can you tell me how should i use it correctly ?</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
