<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Frameworks vs Libraries</title>
	<atom:link href="http://blog.fedecarg.com/2008/08/10/frameworks-vs-libraries/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fedecarg.com/2008/08/10/frameworks-vs-libraries/</link>
	<description>Simple is better than complex. Complex is better than complicated. &#124; @fedecarg</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:38:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Federico</title>
		<link>http://blog.fedecarg.com/2008/08/10/frameworks-vs-libraries/#comment-1242</link>
		<dc:creator><![CDATA[Federico]]></dc:creator>
		<pubDate>Mon, 11 Aug 2008 22:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://phpimpact.wordpress.com/?p=561#comment-1242</guid>
		<description><![CDATA[Very interesting, thanks Alexander.]]></description>
		<content:encoded><![CDATA[<p>Very interesting, thanks Alexander.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Schmidt</title>
		<link>http://blog.fedecarg.com/2008/08/10/frameworks-vs-libraries/#comment-1226</link>
		<dc:creator><![CDATA[Alexander Schmidt]]></dc:creator>
		<pubDate>Mon, 11 Aug 2008 09:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://phpimpact.wordpress.com/?p=561#comment-1226</guid>
		<description><![CDATA[
apps/
..modules/ (Directory that contains the modules shipped with each release)
....comments/
....guestbook/
....kontakt4/
....pager/
....socialbookmark/


The modules folder contains modules based on the core and tools components that are delivered with each release (e.g. guestbook, contact form) or that are implemented by any developer of your team to enrich your web page or application.

The framework works basically with the DOM. if you want to include a module/template/whatever you have to announce for example a controller your template:

&lt;meta name=&quot;DC.Date&quot; content=&quot;&quot; /&gt;

This will call the &quot;website_v1_controller&quot; which will look like this:

class website_v1_controller extends baseController
{
  function website_v1_controller(){
  }

  function transformContent(){
    // Set placeholder &quot;Date&quot;
    $this-&gt;setPlaceHolder(&#039;Date&#039;,date(&#039;Y-m-d&#039;));
  }
}


Note: PHP4-Code

Now, to include an implemented module you simply import its &quot;design&quot; which is the root html/xml file of your module. For example:
you want to include a &quot;comment&quot; module into your page:
The only thing you have to do is add this markup to your existing html:

The framework will now automatically create a new DOM-Node which contains your module.
As you can see there is always a namespace attribute which results in a path.
Every folder under the apps/ folder can be addressed like this.
The comments module folder structure looks like this:


modules/
..comments/
....biz/
....data/
....pres/
......documentcontroller/
........templates/
..........comment.html


This gives you freedom, you can store your module wherever you want, anyway you want. Isn&#039;t this wonderful? :)

Modules (or other DOM-Nodes) can &quot;listen&quot; to URL parameters, and/or can be controlled by parameters.

I hope this is the answer to your question.

The Page is &lt;a href=&quot;http://adventure-php-framework.org/Page/001-Home/~/sites_demosite_biz-action/setLanguage/lang/en&quot; rel=&quot;nofollow&quot;&gt;also available in English&lt;/a&gt;.
]]></description>
		<content:encoded><![CDATA[<p>apps/<br />
..modules/ (Directory that contains the modules shipped with each release)<br />
&#8230;.comments/<br />
&#8230;.guestbook/<br />
&#8230;.kontakt4/<br />
&#8230;.pager/<br />
&#8230;.socialbookmark/</p>
<p>The modules folder contains modules based on the core and tools components that are delivered with each release (e.g. guestbook, contact form) or that are implemented by any developer of your team to enrich your web page or application.</p>
<p>The framework works basically with the DOM. if you want to include a module/template/whatever you have to announce for example a controller your template:</p>
<p>&lt;meta name=&#8221;DC.Date&#8221; content=&#8221;" /&gt;</p>
<p>This will call the &#8220;website_v1_controller&#8221; which will look like this:</p>
<p>class website_v1_controller extends baseController<br />
{<br />
  function website_v1_controller(){<br />
  }</p>
<p>  function transformContent(){<br />
    // Set placeholder &#8220;Date&#8221;<br />
    $this-&gt;setPlaceHolder(&#8216;Date&#8217;,date(&#8216;Y-m-d&#8217;));<br />
  }<br />
}</p>
<p>Note: PHP4-Code</p>
<p>Now, to include an implemented module you simply import its &#8220;design&#8221; which is the root html/xml file of your module. For example:<br />
you want to include a &#8220;comment&#8221; module into your page:<br />
The only thing you have to do is add this markup to your existing html:</p>
<p>The framework will now automatically create a new DOM-Node which contains your module.<br />
As you can see there is always a namespace attribute which results in a path.<br />
Every folder under the apps/ folder can be addressed like this.<br />
The comments module folder structure looks like this:</p>
<p>modules/<br />
..comments/<br />
&#8230;.biz/<br />
&#8230;.data/<br />
&#8230;.pres/<br />
&#8230;&#8230;documentcontroller/<br />
&#8230;&#8230;..templates/<br />
&#8230;&#8230;&#8230;.comment.html</p>
<p>This gives you freedom, you can store your module wherever you want, anyway you want. Isn&#8217;t this wonderful? :)</p>
<p>Modules (or other DOM-Nodes) can &#8220;listen&#8221; to URL parameters, and/or can be controlled by parameters.</p>
<p>I hope this is the answer to your question.</p>
<p>The Page is <a href="http://adventure-php-framework.org/Page/001-Home/~/sites_demosite_biz-action/setLanguage/lang/en" rel="nofollow">also available in English</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Federico</title>
		<link>http://blog.fedecarg.com/2008/08/10/frameworks-vs-libraries/#comment-1214</link>
		<dc:creator><![CDATA[Federico]]></dc:creator>
		<pubDate>Sun, 10 Aug 2008 12:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://phpimpact.wordpress.com/?p=561#comment-1214</guid>
		<description><![CDATA[Thanks for the link. How is the module directory structured and how are the modules managed and coordinated?]]></description>
		<content:encoded><![CDATA[<p>Thanks for the link. How is the module directory structured and how are the modules managed and coordinated?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Schmidt</title>
		<link>http://blog.fedecarg.com/2008/08/10/frameworks-vs-libraries/#comment-1211</link>
		<dc:creator><![CDATA[Alexander Schmidt]]></dc:creator>
		<pubDate>Sun, 10 Aug 2008 10:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://phpimpact.wordpress.com/?p=561#comment-1211</guid>
		<description><![CDATA[If you&#039;re looking for a framework that support most enterprise requirements like PAC a.s.o take a look at http://adventure-php-framework.org/Page/001-Home !
The page is currently re-designed, so in a week or two it&#039;ll be more user friendly (and more sexy ;).
Of course, if a framework supports most features out-of-the box and comes with a PAC-like architecture it becomes automatically more complex and harder to deal with.
But if you implement features where you need multiple designs for various languages or simply want to reuse your already implemented modules take a look at it.

I sadly cannot comment on Davids blog post, so I did here - hope that&#039;s no problem ;).

Questions or suggestions?]]></description>
		<content:encoded><![CDATA[<p>If you&#8217;re looking for a framework that support most enterprise requirements like PAC a.s.o take a look at <a href="http://adventure-php-framework.org/Page/001-Home" rel="nofollow">http://adventure-php-framework.org/Page/001-Home</a> !<br />
The page is currently re-designed, so in a week or two it&#8217;ll be more user friendly (and more sexy ;).<br />
Of course, if a framework supports most features out-of-the box and comes with a PAC-like architecture it becomes automatically more complex and harder to deal with.<br />
But if you implement features where you need multiple designs for various languages or simply want to reuse your already implemented modules take a look at it.</p>
<p>I sadly cannot comment on Davids blog post, so I did here &#8211; hope that&#8217;s no problem ;).</p>
<p>Questions or suggestions?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

