<?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>Sun, 19 May 2013 17:00:25 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Allen's Blog: Some ZendView examples]]></title>
      <guid>http://www.phpdeveloper.org/news/17658</guid>
      <link>http://www.phpdeveloper.org/news/17658</link>
      <description><![CDATA[<p>
Following on the heels of the beta 3 release of the Zend Framework 2, <i>Rob Allen</i> has been posting more about its features and what's changed from the version 1 world. In <a href="http://akrabat.com/zend-framework-2/some-zendview-examples/">this new post</a> he looks at some examples of how to use the newly refactored ZendView component.
</p>
<blockquote>
With the release of Beta 3 of Zend Framework, we now have a significantly refactored the ZendView component. One of the changes made is that there is a ViewModel object that is returned from a controller which contains the variables to be used within the view script along with meta information such as the view script to render. [...] However, we can do many more interesting things than this and I've put together a <a href="http://zf2test.akrabat.com/">test application</a> with a controller showing some of the things that can be done.
</blockquote>
<p>
Included in <a href="http://akrabat.com/zend-framework-2/some-zendview-examples/">the post</a> includes two snippets of code from the sample project - how to change the layout in the action and creating another view model at the layout level.
</p>]]></description>
      <pubDate>Mon, 12 Mar 2012 10:52:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[3 Engineers Blog: 3 Step Layouts in Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/16144</guid>
      <link>http://www.phpdeveloper.org/news/16144</link>
      <description><![CDATA[<p>
In a recent post to the 3 Engineers blog, they take the usual "Two Step" approach the Zend Framework takes to generating view data (Zend_View + Zend_Layout) and takes it up one more step by using <a href="http://3engineers.clariondoor.com/creating-3-step-layouts-with-zendlayout">Three Step Layouts with a simple wrapper</a>.
</p>
<blockquote>
While the Two Step View pattern creates a reasonable paradigm for seperating layout presentation from page presentation, enabling Three-level Inheritance allows for even better separation. In other words, using 3 Step Layouts is a possible and often necessary investment to make when implementing front-ends in Zend Framework projects; they allow fine grain re-usability that provides for a DRYer presentation layer.
</blockquote>
<p>
They have a three step process you can follow (complete with code snippets) that'll have you working with their 3 layers easily. The wrapper is a sort of "boostrap" for the layout. The nested layout is then pulled into this wrapper (for example's sake, theirs is called "default") and then the view can be served as normal and placed into the content location. There's also a bit of code showing how to switch out the layout if there's ever a need - like different layouts for the admin, user and main parts of your application.
</p>]]></description>
      <pubDate>Mon, 04 Apr 2011 13:04:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: Integrating Zend_View with WordPress]]></title>
      <guid>http://www.phpdeveloper.org/news/16079</guid>
      <link>http://www.phpdeveloper.org/news/16079</link>
      <description><![CDATA[<p>
<i>Kevin Schroeder</i> has a recent post to his blog showing how he <a href="http://www.eschrade.com/page/integrating-zend_view-with-wordpress/">integrated Zend_View into a WordPress install</a> for his blog. It was as a part of a plugin he uses on some of his internal pages.
</p>
<blockquote>
I just read a blog post about <a href="http://www.leftjoin.net/2011/03/integrating-zend-framework-with-wordpress/">integrating Zend Framework and WordPress</a> and figured I'd add some commentary of my own, since I've done something similar.  In my ESchrade plugin I use Zend_View to render some of my admin pages, though there is no reason why you couldn't use it elsewhere, as long as the plugin has already been loaded.
</blockquote>
<p>
Adding the functionality is easy as long as the Zend Framework install is in your include path. He gives some sample code that creates the view object, defining the templates path and pulling in the "wp_register_sidebar_widget" WordPress method to import the view.
</p>]]></description>
      <pubDate>Tue, 22 Mar 2011 10:08:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's' Blog: A Zend Framwork compound form element for dates]]></title>
      <guid>http://www.phpdeveloper.org/news/16075</guid>
      <link>http://www.phpdeveloper.org/news/16075</link>
      <description><![CDATA[<p>
In a new post to his blog today <i>Rob Allen</i> shows you how to create <a href="http://akrabat.com/zend-framework/a-zend-framwork-compount-form-element-for-dates/">compound form element handling</a> in a Zend Framework application thanks to some custom work with Zend_Form and Zend_View extensions.
</p>
<blockquote>
A little bit of googling found this site <a href="http://codecaine.co.za/posts/compound-elements-with-zend-form">http://codecaine.co.za/posts/compound-elements-with-zend-form</a> which has not unfortunately disappeared, so the code in this article owes a lot of the author of that article. It turns out to be remarkably simple to create a single Zend Form element that is rendered as multiple form elements. We create an element object and a view helper object and we're done. 
</blockquote>
<p>
He shows how to create a custom form date helper that extends the base XHTML to create the isValid/getValue methods for handling the complex date input. There's also the code for the view that creates the <a href="http://akrabat.com/wp-content/uploads/2011-03-Screen-shot-2011-03-08-at-20.45.03.png">custom date input</a> and repopulates the content if there's a need.
</p>]]></description>
      <pubDate>Mon, 21 Mar 2011 12:23:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Fun with custom Zend_Views]]></title>
      <guid>http://www.phpdeveloper.org/news/14704</guid>
      <link>http://www.phpdeveloper.org/news/14704</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Chris Hartjes</i> talks about some <a href="http://www.littlehart.net/atthekeyboard/2010/06/24/fun-with-custom-zend_views">fund he had with custom Zend_Views</a> in developing a fantasy gaming platform.
</p>
<blockquote>
I managed to figure out that one requirement was for an admin to upload a header and footer file for a game. "The idea here is to be able to set up a new game for someone without programmer intervention". After I got over being insulted that a programmer was not required for every tiny tweak to the site (I'm kidding) I tried to figure out how I was going to accomplish this. I'm not a big fan of storing actual HTML content in a database.
</blockquote>
<p>
He figured out that a set of custom Zend_View components were just what was needed - they could override the content that was out there and pull in the dynamic needs from database records. He includes both his test for the class (trying out TDD) and the code for the custom view. He also shares a few "gotcha" sort of things that he learned in the process.
</p>]]></description>
      <pubDate>Fri, 25 Jun 2010 11:47:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ZendCasts.com: Painless HTML Emails with Zend_Mail]]></title>
      <guid>http://www.phpdeveloper.org/news/14688</guid>
      <link>http://www.phpdeveloper.org/news/14688</link>
      <description><![CDATA[<p>
On the ZendCasts.com site today there's a <a href="http://www.zendcasts.com/painless-html-emails-with-zend_mail/2010/06/?">new screencast posted</a> looking at using the Zend_Mail component of the <a href="http://framework.zend.com">Zend Framework</a> to easy (and painlessly) send HTML emails.
</p>
<blockquote>
Here's a quick video explaining how quickly and easy it is to write designer-friendly HTML emails using Zend_View and Zend_Mail.
</blockquote>
<p>
You can watch the screencast via their <a href="http://www.zendcasts.com/painless-html-emails-with-zend_mail/2010/06/">in-page player</a> and grab a copy of <a href="http://zendcasts.googlecode.com/svn/trunk/zc56-painless-html-email-with-zend-mail/zc56-painless-html-email-with-zend-mail.zip">the project</a> to follow along.
</p>]]></description>
      <pubDate>Wed, 23 Jun 2010 08:45:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Daniel Cousineau's Blog: Netbeans Code Completion and your Zend_View]]></title>
      <guid>http://www.phpdeveloper.org/news/14505</guid>
      <link>http://www.phpdeveloper.org/news/14505</link>
      <description><![CDATA[<p>
<i>Daniel Cousineau</i> has posted a <a href="http://www.toosweettobesour.com/2010/05/11/netbeans-code-completion-and-your-zend_view/">quick tip for Netbeans users</a> that are working with the Zend Framework. The tip involves code completion support in your Zend_View instances.
</p>
<blockquote>
If you're using Zend Framework and NetBeans, you may be like me and bemoaning the lack of code completion in your Zend Views. As you may know, essentially what Zend_View does is includes your view within a method that belongs to a Zend_View object. This gives your view some nice variable encapsulation as well as access to the $this object (which is how Zend_View provides access to all the ViewHelpers and other functions). Unfortunately NetBeans can't figures this out (such is the problem with static analysis on a dynamic language) without help. 
</blockquote>
<p>
Thanks to <a href="http://www.tiplite.com/useful-netbeans-6-8-php-tips/">a tip from another site</a> he found out that all it takes is a phpDocumentor addition to the top of the script to tell Netbeans what the file is. It links the current object ($this) to tell the IDE that it's a Zend_View instance.
</p>]]></description>
      <pubDate>Wed, 12 May 2010 13:02:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: Zend Framework Book: Surviving The Deep End - Chapter 10 Released!]]></title>
      <guid>http://www.phpdeveloper.org/news/13191</guid>
      <link>http://www.phpdeveloper.org/news/13191</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has <a href="http://blog.astrumfutura.com/archives/414-Zend-Framework-Book-Surviving-The-Deep-End-Chapter-10-Released!-Zend_View,-Zend_Layout,-html-5-and-YUI-CSS.html">released the latest chapter</a> from his "Zend Framework: Surviving the Deep End" online book - chapter 10, a look at Zend_View, Zend_Layout, HTML5 and working with CSS in the YUI.
</p>
<blockquote>
The new chapter explores setting up the example blog application's web design using Zend_View and Zend_Layout. I also spend some time exploring HTML 5, the future standards update for HTML. [...] The web design itself makes use of the Yahoo! User Interface Library's CSS components.
</blockquote>
<p>
He's also <a href="http://github.com/padraic/ZFBlog/tree">posted the source code</a> divided up by the different chapters. You can find out more about the book and read the contents so far on the book's website: <a href="http://www.survivethedeepend.com/">Survivethedeepend.com</a>.
</p>]]></description>
      <pubDate>Wed, 09 Sep 2009 10:42:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Zend Framework 1.7.5 Released (Security Fix)]]></title>
      <guid>http://www.phpdeveloper.org/news/11970</guid>
      <link>http://www.phpdeveloper.org/news/11970</link>
      <description><![CDATA[<p>
As mentioned in <a href="http://devzone.zend.com/article/4266-Zend-Framework-1.7.5-Released">this new post</a> to the Zend Developer Zone, the latest version of the Zend Framework has been released - 1.7.5 - and includes an important security fix:
</p>
<blockquote>
Besides the normal small enhancements and bug fixes that come with an incremental release such as this, there is also a rather important (and somewhat controversial) security fix that was added. This security fix breaks backwards compatibility with the previous version, because it simply must in order to exist. There is however a way to turn the security fix off to keep your current applications working in the case that this change breaks you.
</blockquote>
<p>
<i>Matthew Weier O'Phinny</i> <a href="http://weierophinney.net/matthew/archives/206-Zend-Framework-1.7.5-Released-Important-Note-Regarding-Zend_View.html">gives more detail on the issue</a> over on his blog. The problem stems from an issue in the Zend_View's render() method and possible user input problems. 
</p>
<p>
You can download this latest release from <a href="http://framework.zend.com/download/latest/">the Zend Framework website</a>.
</p>]]></description>
      <pubDate>Wed, 18 Feb 2009 08:48:14 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog:  Output Filters in Zend_View]]></title>
      <guid>http://www.phpdeveloper.org/news/10348</guid>
      <link>http://www.phpdeveloper.org/news/10348</link>
      <description><![CDATA[<p>
<i>Matthew Turland</i> has written up <a href="http://ishouldbecoding.com/2008/06/04/output-filters-in-zend_view">a new tutorial</a> explaining something that isn't "currently very well documented" in the Zend Framework - output filters.
</p>
<blockquote>
They're mentioned in passing in the <a href="http://framework.zend.com/manual/en/zend.view.html">Zend_View</a> documentation, but not reviewed in detail anywhere in the Reference Guide as of version 1.5.2. I was curious enough about how to implement markup <a href="http://yuiblog.com/blog/2006/03/06/minification-v-obfuscation/">minification</a> that I decided to trace through the Zend_View source code in attempt to discern how output filters actually worked. As it turns out, it's actually pretty simple.
</blockquote>
<p>
He explains a simple example of how they work, using a Zend_View object to build the filters on (addFilterPath/setFilterPath), and how he created his own output filter - the Minify filter. A minifier removes the comments and whitespace in the output to help reduce its size.
</p>]]></description>
      <pubDate>Thu, 05 Jun 2008 11:16:02 -0500</pubDate>
    </item>
  </channel>
</rss>
