<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 09:42:19 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Under the Hood of Yii's Component Architecture, Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/17472</guid>
      <link>http://www.phpdeveloper.org/news/17472</link>
      <description><![CDATA[<p>
On PHPMaster.com today <i>Steven O'Brien</i> takes a look at a popular PHP-based framework, <a href="http://www.yiiframework.com/">Yii</a> - specifically one of the components that makes it up, the <a href="http://www.yiiframework.com/doc/api/1.1/CComponent">CComponent</a> that provides a base for all other components in the framework.
</p>
<blockquote>
There's been a lot of buzz surrounding the use of frameworks for quite a while now and there are many great PHP frameworks to choose from. I was blown away by the simplicity and power of the base <a href="http://www.yiiframework.com/doc/api/1.1/CComponent">CComponent</a> class in the Yii framework. [...] Every class in the framework extends from the CComponent class, which means that all subclasses work as components and can raise and handle events as well as be reusable and configurable. This packs a lot of punch for such a little class!
</blockquote>
<p>
In this first post of the series, he looks at how this base class lets you work with class properties using the magic getters and setters. He includes some code showing how to set them up and how to use it to configure your object by passing in other component and their configuration.
</p>]]></description>
      <pubDate>Tue, 31 Jan 2012 11:19:47 -0600</pubDate>
    </item>
  </channel>
</rss>
