News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Daniel Cousineau's Blog:
Netbeans Code Completion and your Zend_View
May 12, 2010 @ 13:02:14

Daniel Cousineau has posted a quick tip for Netbeans users that are working with the Zend Framework. The tip involves code completion support in your Zend_View instances.

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.

Thanks to a tip from another site 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.

0 comments voice your opinion now!
netbeas code completion zendframework zendview


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Paging and Sorting Data with Zend Framework, Doctrine and PEAR (part 1)

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 7: Zend_View Enhanced

IBM developerWorks: Cloud computing with PHP, Part 1: Using Amazon S3 with the Zend Framework

Zend Developer Zone: Zend Framework v1.7.3 Released

Rob Allen's Blog: Accessing your configuration data in application.ini


Community Events





Don't see your event here?
Let us know!


introduction deployment community framework language package list opinion update interview api tips zendserver series podcast library laravel symfony release install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework