<?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>Fri, 09 Jan 2009 06:26:19 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Daniel Cousineau's Blog: Zend Framework Module Init Script (Controller Plugin)]]></title>
      <guid>http://www.phpdeveloper.org/news/11689</guid>
      <link>http://www.phpdeveloper.org/news/11689</link>
      <description><![CDATA[<p>
<i>Daniel Cousineau</i> has <a href="http://www.toosweettobesour.com/2009/01/06/zend-framework-module-init-script-controller-plugin/">a new blog post</a> showing off a plugin he's made for Zend Framework applications that allows you to run a script before each controller.
</p>
<blockquote>
Recently at work I had the need to run a script before every single controller (namely to add a plugin folder to Dwoo) for a specific module that I did not desire for any other modules. I could have subclassed all my controllers to extend a custom action controller that handled this in the init() method, however I'm lazy so I wrote a quick Zend Controller Plugin to handle this for me.
</blockquote>
<p>
The plugin actually runs when the routeShutdown method is used (after the routing is done, but before the controller is called) and pulls in the contents of the specified file and executes it like the code was already embedded. Complete code is included.
</p>]]></description>
      <pubDate>Wed, 07 Jan 2009 09:35:41 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: Login example with Zend_Auth]]></title>
      <guid>http://www.phpdeveloper.org/news/11676</guid>
      <link>http://www.phpdeveloper.org/news/11676</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has <a href="http://robertbasic.com/blog/login-example-with-zend_auth/">posted an example</a> of the use of the Zend_Auth component of the Zend Framework inside of an example controller.
</p>
<blockquote>
So, here's what I'm going to do: authenticate an user against a database table using Zend Framework's Zend_Auth component. It's really a piece of cake. You can see a working example here: <A href="http://robertbasic.com/dev/login/">http://robertbasic.com/dev/login/</a>.
</blockquote>
<p>
He <a href="http://robertbasic.com/blog/login-example-with-zend_auth/">sets up</a> a registry instance, a database table for the logins and the sample controller with both login and logout functionality. Complete code (and links to Zend Framework documentation are included).
</p>]]></description>
      <pubDate>Mon, 05 Jan 2009 22:14:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: Eli White is Zend's New "Community Guy"]]></title>
      <guid>http://www.phpdeveloper.org/news/11674</guid>
      <link>http://www.phpdeveloper.org/news/11674</link>
      <description><![CDATA[<p>
According to <a href="http://eliw.wordpress.com/2009/01/05/zends-new-community-guy/">this new post</a> on his blog, <i>Eli White</i> has taken over the post of "community guy" at Zend (a post previously held by <i>Cal Evans</i>).
</p>
<blockquote>
I've been offered a position at Zend, and accepted it.  The official (lengthy) job title is <a href="http://www.zend.com/en/company/jobs-at-zend/devzone-editor-in-chief">Zend Community Manager/Leader & DevZone Editor-In-Chief</a>.  The short form to many people would be:  "The job formerly held by Cal Evans" I'm extremely excited about this opportunity to work with Zend and to have the focus of my daily job to be working with the PHP community which I dearly love.  I know that any attempt to fill Cal's shoes will be met with failure, so I hope instead to come up with my own twist on the position and to give it my best.
</blockquote>
<p>
He'll be acting as the liason between the PHP company and the rest of the community including writing articles, doing some podcasting and all around getting in the middle of whatever's going on in the PHP community. Congrats <i>Eli</i>!
</p>]]></description>
      <pubDate>Mon, 05 Jan 2009 20:37:15 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Converting Legacy Apps to CakePHP, Part 3]]></title>
      <guid>http://www.phpdeveloper.org/news/11653</guid>
      <link>http://www.phpdeveloper.org/news/11653</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> continues his series looking at converting over legacy applications into a CakePHP environment with <a href="http://www.littlehart.net/atthekeyboard/2008/12/30/converting-legacy-apps-to-cakephp-part-3/">this third part</a>, a focus on what can be one of the hardest parts - separating out business logic and presentation logic.
</p>
<blockquote>
Anyway, onto other matters. As you saw in parts 1 and 2, a bug part in having a successful transition from legacy app to CakePHP is having an environment that is well suited to the use of a framework. Having laid out the groundwork for that switchover, it's time to talk about the part of a refactoring or porting that is most difficult: separating your business logic from your display logic. 
</blockquote>
<p>
He talks about fat models, skinny controllers and flexible views with some code to illustrate each. This method makes the models do most of the work while the controllers are more of a go-between for them and the views. The views, then, are pliable enough to work with whatever data might be thrown at them.
</p>]]></description>
      <pubDate>Wed, 31 Dec 2008 12:58:33 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Eran Galperin's Blog: Zend Framework certification]]></title>
      <guid>http://www.phpdeveloper.org/news/11649</guid>
      <link>http://www.phpdeveloper.org/news/11649</link>
      <description><![CDATA[<p>
<i>Eran Galperin</i> has taken and passed Zend's newer certification offering, the Zend Framework Certified Engineer exam. In <a href="http://www.techfounder.net/2008/12/30/zend-framework-certification/">this new post</a> he talks some about the experience and his impressions of the test itself.
</p>
<blockquote>
Today I took and passed the <a href="http://www.zend.com/en/services/certification/framework/">Zend Framework certification exam</a>. A possible project involving Zend might be materializing in the near future, and this was a requirement from one of my contractors (<a href="http://www.openit.co.il/">OpenIT</a>). Being that they offered to sponsor the <a href="http://www.zend.com/en/store/php-certification/zend-framework-certification-exam-voucher">cost</a>, I had no reason not take it.
</blockquote>
<p>
He talks about the test and the testing procedure - one and a half hours long with seventy-five questions in all. Most were multiple choice but some asked for the resulting output from some code. Lots of topics are covered including specific modules and general MVC architecture. He points out a slightly discouraging fact - that the number of "trick" questions seemed a bit high.
</p>
<blockquote>
I do have some more respect for people holding the certification now (regarding knowledge and experience), though I'm not sure what regard does it hold in the industry.
</blockquote>]]></description>
      <pubDate>Wed, 31 Dec 2008 09:31:43 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Using Code Igniter to Enable Comments in a Blog Application]]></title>
      <guid>http://www.phpdeveloper.org/news/11647</guid>
      <link>http://www.phpdeveloper.org/news/11647</link>
      <description><![CDATA[<p>
DevShed continues their series on using CodeIgniter to make a simple blogging application with <a href="http://www.devshed.com/c/a/PHP/Using-Code-Igniter-to-Enable-Comments-in-a-Blog-Application/">this new article</a>. It focuses on the next step in the blog's evolution - making it able to accept user comments.
</p>
<blockquote>
A decent blog application, however, must provide users with a mechanism that lets them post their comments easily, and the simplest way to do this is via an HTML form. Therefore, in the next few lines, I'll be explaining how to modify the controller class and the comments view file created in the preceding article to incorporate a basic web form that permits users to post comments on a particular blog entry.
</blockquote>
<p>
They start by reviewing the code and application so far, ensuring we're all on the same page. From there, they add code into the controller to handle the form input and make a view to create the form itself.
</p>]]></description>
      <pubDate>Wed, 31 Dec 2008 07:50:56 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPImpact Blog: PHPUnit: Testing Zend Framework Controllers]]></title>
      <guid>http://www.phpdeveloper.org/news/11632</guid>
      <link>http://www.phpdeveloper.org/news/11632</link>
      <description><![CDATA[<p>
On the PHP::Impact blog there's a <a href="http://phpimpact.wordpress.com/2008/12/27/phpunit-testing-zend-framework-controllers/">recent post</a> looking at using the popular unit testing PHP framework <a href="http://www.phpunit.de">PHPUnit</a> to test Zend Framework controllers.
</p>
<blockquote>
Testing a Web application is a complex task, because a Web application is made of several layers of logic. Unit testing a Zend Framework controller can be very difficult, specially for those who are not familiar with the Zend Framework. You can test your action controllers using <a href="http://framework.zend.com/manual/en/zend.test.html">Zend_Test</a> and/or <a href="http://www.phpunit.de/">PHPUnit</a>. Zend_Test allows you to simulate requests, insert test data, inspect your application's output and generally verify your code is doing what it should be doing.
</blockquote>
<p>
He opts for the second one and includes the directory structure you'll need to set up the tests, an example bootstrap file and a simple controller (AllTests). A simple test example is also included that checks a few things - if its the default action, the first action, parameter names and method names.
</p>]]></description>
      <pubDate>Mon, 29 Dec 2008 10:21:37 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Reusable "generic" actions in Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/11629</guid>
      <link>http://www.phpdeveloper.org/news/11629</link>
      <description><![CDATA[<p>
In <a href="http://codeutopia.net/blog/2008/12/27/reusable-generic-actions-in-zend-framework/">this recent blog entry</a> <i>Jani Hartikainen</i> looks at the creation of generic actions for Zend Framework applications - methods that can be used to help eliminate code duplication:
</p>
<blockquote>
Sometimes you will need nearly the same functionality in many actions. [...] There are several ways to deal with this, such as moving the code into a separate function, or an action helper. But in this post, I'm going to introduce so called "generic actions" - parametrized, easy to reuse actions - which is an idea similar to <a href="http://docs.djangoproject.com/en/dev/ref/generic-views/">django generic views</a>.
</blockquote>
<p>
His example takes a generic action - one that grabs and output records from a table - and modifies it to take in parameters from the defining function as to which action/controller/model and ID to use. Then this action can be used over and over in multiple places without having to do any copy and paste coding. 
</p>]]></description>
      <pubDate>Mon, 29 Dec 2008 07:55:13 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP in Action: The one-line web framework]]></title>
      <guid>http://www.phpdeveloper.org/news/11582</guid>
      <link>http://www.phpdeveloper.org/news/11582</link>
      <description><![CDATA[<p>
On the PHP in Action blog <a href="http://www.reiersol.com/blog/1_php_in_action/archive/172_the_one-line_web_framework.html">this new post</a> talks about something that's at the core of the front controller for most frameworks - a call to a user function based on the passed in action.
</p>
<blockquote>
The core of your average web framework is a Front Controller. Front Controllers are commonly considered complex and esoteric. That's a myth. I sometimes brag that I can construct a Front Controller in 15 minutes. Actually, it's doesn't take quite that long. In PHP, a Front Controller can be simplified to just one line of code.
</blockquote>
<p>
This one line of code, while a very dangerous thing to actually use in an application, illustrates what a front controller does to forward out the request to the rest of the framework. He revises it with a Zend Framework-ish example that splits the request out into a controller/action method.
</p>]]></description>
      <pubDate>Tue, 16 Dec 2008 12:09:42 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Andi Gutmans' Blog: 10 million downloads and counting...]]></title>
      <guid>http://www.phpdeveloper.org/news/11532</guid>
      <link>http://www.phpdeveloper.org/news/11532</link>
      <description><![CDATA[<p>
As <i>Andi Gutmans</i> <a href="http://andigutmans.blogspot.com/2008/12/1o-million-downloads-and-counting.html">mentions on his blog</a>, the Zend Framework has reached the 10 million downloads mark and is still going strong:
</p>
<blockquote>
When I started the Zend Framework project back in 2005 I was sure that we could make a difference. Some thought it was a long shot with too ambitious goals, after all I wanted to start from scratch without a single line of code, no community contributors and no corporate contributors. We are now 3.5 years later and I have to say Zend Framework's success has exceeded my own foresight and expectations.
</blockquote>
<p>
He mentions the teams behind the Framework and some of Zend's partners that have helped to make it an amazing success.
</p>]]></description>
      <pubDate>Tue, 09 Dec 2008 07:52:14 -0600</pubDate>
    </item>
  </channel>
</rss>
