<?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, 16 May 2008 03:28:09 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: View Helpers in Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/10068</guid>
      <link>http://www.phpdeveloper.org/news/10068</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/3412-View-Helpers-in-Zend-Framework">posted a new tutorial</a> (from <i>Matthew Weier O'Phinney</i>) about a handy feature of the Zend Framework's view layer - view helpers that can be added in and reused across an application to do some pretty cool stuff.
</p>
<blockquote>
A View Helper is simply a class that follows particular naming conventions, When attached to a view object, you can call the helper as if it were a method of the view object itself. The View object retains helper instances, which means that they retain states between calls.
</blockquote>
<p>
View helpers can be use to do things like manipulate view data for more complex operations and carrying over data between two views, limiting the number of fetches that have to be done. He shows how to create a simple helper - My_Helper_FooBar - that just appends "fooBar " to whatever's passed in. He also talks about some of the default view helpers (like form fields), partials, the doctype() helper, capturing/caching content to be used later and the use of placeholders.
</p>]]></description>
      <pubDate>Tue, 29 Apr 2008 14:38:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: An Example Zend Framework Blog App - Part 3: A Simple Hello World Tutorial]]></title>
      <guid>http://www.phpdeveloper.org/news/10066</guid>
      <link>http://www.phpdeveloper.org/news/10066</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has posted <a href="http://blog.astrumfutura.com/archives/355-An-Example-Zend-Framework-Blog-Application-Part-3-A-Simple-Hello-World-Tutorial.html">part three</a> in his look at making a blogging application with the Zend Framework. This time get gets down and gets into the code.
</p>
<blockquote>
It's almost obligatory when introducing a new programming topic, that the author present the simplest possible example. Usually this means getting a programming language or framework to print "Hello World" to the screen. I'm going to be no different. So much for originality...
</blockquote>
<p>
He shows how to set up everything, down to the Apache VirtualHost directive and hosts file to get the web server and localhost working correctly. He includes the code for the boostrap file and how to create your first controller (along with its view, of course).
</p>]]></description>
      <pubDate>Tue, 29 Apr 2008 12:57:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Girouard's Blog: Rolling Your Own MVC: The View]]></title>
      <guid>http://www.phpdeveloper.org/news/10052</guid>
      <link>http://www.phpdeveloper.org/news/10052</link>
      <description><![CDATA[<p>
<i>Michael</i> is back with <a href="http://www.lovemikeg.com/blog/2008/04/28/rolling-your-own-mvc-the-view/">part three</a> of his series stepping you through the creation of your own MVC framework (<a href="http://www.lovemikeg.com/blog/2008/02/21/rolling-your-own-mvc-introduction/">Part 1</a> and <a href="http://www.phpdeveloper.org/news/9944">Part 2</a>) with a look at the part that interfaces with the user - the View.
</p>
<blockquote>
Using the view as a starting point may seem odd at first considering the view-related actions are some of the last steps in the page load scenario, but since our views don't have any external dependencies, unit tests are very easy to write and so is the accompanying code.
</blockquote>
<p>
He <a href="http://www.lovemikeg.com/blog/2008/04/28/rolling-your-own-mvc-the-view/">explains</a> how views work along with the rest of the framework and some of the basic rules surrounding how they get their data. Code comes along with the explanations for different views like XML, HTML and JSON methods of output. 
</p>]]></description>
      <pubDate>Mon, 28 Apr 2008 09:39:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Hasin Hayder's Blog: Getting started with orchid framework]]></title>
      <guid>http://www.phpdeveloper.org/news/9932</guid>
      <link>http://www.phpdeveloper.org/news/9932</link>
      <description><![CDATA[<p>
<i>Hasin Hayder</i> has <a href="http://hasin.wordpress.com/2008/04/07/getting-started-with-orchid-framework/">blogged about</a> some of his "first steps" with a relatively new PHP framework on the scene - <a href="http://orchidframework.googlecode.com">Orchid</a>.
</p>
<blockquote>
Orchid is a small framework with bare necessities to kick start developing killer php web applications. this framework is not flooded with unnecessary features and libraries. it only contains the essential helpers and libraries to boost up your development, not slowing it down. orchid features a very short learning curve, which will keep you trouble free.
</blockquote>
<p>
He documents the step he followed - downloading the latest release (from the svn repository), making a first controller and adding a view to make his first "hello world" application.
</p>]]></description>
      <pubDate>Tue, 08 Apr 2008 13:01:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: "My framework is more MVC than *your* framework!"]]></title>
      <guid>http://www.phpdeveloper.org/news/9755</guid>
      <link>http://www.phpdeveloper.org/news/9755</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> has <a href="http://www.littlehart.net/feeder/?FeederAction=clicked&feed=Articles+%28RSS2%29&seed=http%3A%2F%2Fwww.littlehart.net%2Fatthekeyboard%2F2008%2F03%2F06%2Fmy-framework-is-more-mvc-than-your-framework%2F&seed_title=%26%238220%3BMy+framework+is+more+MVC+than+%2Ayour%2A+framework%21%26%238221%3B">posted about</a> a topic, while not new in the PHP community it seems to have resurfaced more lately - how MVC is implemented (or not implemented) in most of the PHP-based Rails-esque frameworks.
</p>
<blockquote>
This guy [making comments at PHP London] apparently works for the <a href="http://agavi.org/">Agavi</a> project. [...] The comments for that [reddit] post are really interesting too, as people take their usual swipes at PHP, and CakePHP, and the Symfony guys come out in droves to talk up Symfony, and on and on it goes. Sadly, this is not a unique occurance on the web.
</blockquote>
<p>
<i>Chris</i> took a closer look at Agavi to see what made its MVC so special - only to find that it just does it different, but not necessarily "right" (he includes a code example to illustrate). He also <A href="http://en.wikipedia.org/wiki/Model-view-controller">quotes Wikipedia</a>'s definition of an MVC framework and notes that CakePHP seems to fit it to a tee.
</p>]]></description>
      <pubDate>Fri, 07 Mar 2008 08:45:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: A View Stream with Zend_View]]></title>
      <guid>http://www.phpdeveloper.org/news/9581</guid>
      <link>http://www.phpdeveloper.org/news/9581</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has <a href="http://akrabat.com/2008/02/05/a-view-stream-with-zend_view/">posted about</a> a small modification that he made to his Zend Framework setup that allows for a little safer echoing of information out to the View later of an application.
</p>
<blockquote>
One of my biggest issues with using PHP as the templating engine in View scripts is that the easiest way to echo a variable is the least secure. [...] So, I decided to leverage <a href="http://mikenaberezny.com/2006/02/19/symphony-templates-ruby-erb/">a post by Mike Naberezny</a> from a while ago about streams. The idea is all his; I just modified it to work with Zend Framework's Zend_View the way I wanted it to.
</blockquote>
<p>
His method uses a slightly different output format - instead of using a normal echo statement to push out the escaped output, it uses a special syntax using the "@" sign as a shortcut to the call to escape(). He includes the code you'll need to make it work in your ZF install and explain it a bit (including where the real key lies - in stream_popen). 
</p>]]></description>
      <pubDate>Thu, 07 Feb 2008 07:58:17 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[KillerPHP.com: Zend Framework: Using View Helpers to Build Rich, Scalable, Controls]]></title>
      <guid>http://www.phpdeveloper.org/news/9539</guid>
      <link>http://www.phpdeveloper.org/news/9539</link>
      <description><![CDATA[<p>
This <a href="http://www.killerphp.com/articles/zend-framework-view-helpers/">new post</a> from <i>Jon Lebensold</i> (on the <a href="http://www.killerphp.com">KillerPHP blog</a>) introduces you to a handy feature of the Zend Framework - View Helpers.
</p>
<blockquote>
In summary, View Helpers are great for encapsulating forms, grids and other functionality that could eventually be bound to a different data source or even be pushed back to the user through a simple AJAX call.
</blockquote>
<p>
Example code on how to use them <a href="http://www.killerphp.com/articles/zend-framework-view-helpers/">is included</a> showing a sample helper that adds Ajax functionality to a form's submit and pushes the response values back out into a div on the page.
</p>]]></description>
      <pubDate>Thu, 31 Jan 2008 12:03:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Zend_View: Access the view from a view helper]]></title>
      <guid>http://www.phpdeveloper.org/news/9196</guid>
      <link>http://www.phpdeveloper.org/news/9196</link>
      <description><![CDATA[<p>
In this <a href="http://akrabat.com/2007/12/06/zend_view-access-the-view-from-a-view-helper/">new blog entry</a>, <i>Rob Allen</i> has shared a simple View setup that he's been using in his Zend_View setup (on the Zend Framework).
</p>
<blockquote>
It's in the manual, but I thought I'd blog about my simple View Helper setup that ensures that I can get at the view with minimal effort. [...] his class contains the code required by Zend_View to collect an instance of the view and assign it to a protected variable. All my view helpers extend this class and so I can access the view using $this->_view.
</blockquote>
<p>
His code creates a simple object that all of his views extend and make a single object that refers back to the view itself.
</p>]]></description>
      <pubDate>Fri, 07 Dec 2007 12:08:00 -0600</pubDate>
    </item>
  </channel>
</rss>
