<?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>Sat, 18 May 2013 08:19:42 -0500</pubDate>
    <ttl>30</ttl>
    <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>
  </channel>
</rss>
