Archive for February, 2008

Zend Framework 1.0.4 and 1.5 RC1 released

The final release of the 1.0 series of Zend Framework, version 1.0.4 has been released. This release fixes 111 known issues and means that the 1.0 branch is as bug free as possible and it is now time to move on the forthcoming 1.5 release.

On that note, the first release candidate for Zend Framework 1.5 was also released today. From the announcement, the new features for 1.5 include:

  • New Zend_Form component with support for AJAX-enabled form elements
  • New action and view helpers for automating and facilitating AJAX requests and alternate response formats
  • Infocard and OpenID authentication adapters
  • Support for complex Lucene searches, including fuzzy, date-range, and wildcard queries
  • Support for Lucene 2.1 index file format
  • Partial, Placeholder, Action, and Header view helpers for advanced view composition and rendering
  • New Zend_Layout component for automating and facilitating site layouts
  • UTF-8 support for PDF documents
  • New Technorati and SlideShare web services

Both releases are available at http://framework.zend.com/download.

Posted by Rob on 26th February 2008 under News | No Comments »

Careful where you set your doctype

Along with the resolution of this view helper bug concerning view helpers not being doctype aware, comes a small gotcha if you are relying on setting your doctype in layouts like so:

echo $this->doctype('XHTML1_STRICT');

The problem is that view helpers will not be aware of this setting and will revert to the default setting HTML4_LOOSE. To avoid this be sure to set the doctype earlier in the bootstrap process, something like so:

$viewRenderer->view->doctype('XHTML1_STRICT');

Posted by Nick on 24th February 2008 under Tips and Tricks | No Comments »

PHP and Oracle on RegDeveloper

The Register’s Developer section has a new article up about using Zend Framework to connect to an Oracle database using the MVC components. In the article, Deepak Vohra looks at creating a simple MVC application that creates a simple CRUD application using the Oracle Zend_Db adapter.

Posted by Rob on 22nd February 2008 under Around the web | No Comments »

Zend Form Tutorial

I’ve just posted a very simple example of how to use Zend_Form over on akrabat.com.

Once you’ve read it and seen the power of Zend_Form, the manual provides much more detail on all the elements available and how to use them.

Posted by Rob on 21st February 2008 under Around the web | No Comments »

Zend_Form now in trunk

Zend_Form has been promoted from the incubator to the main library code-base of the framework. This new component will now be part of the first release candidate of version 1.5.

You can grab a snapshot of the latest trunk code at the bottom left corner http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/library where it says “Tarball”.

Then, have a look at the quickstart in the manual to see how to use it!

Posted by Rob on 19th February 2008 under News | No Comments »

Final Release of ZF 1.0 branch

WIl has recently posted to the fw-general mailing list that the final release of the 1.0 branch of the Zend Framework is currently planned for 22nd February 2008. This will be a useful set of bug fixes to the 1.0 branch enabling it to go out on a high note.

In the same announcement, Wil also said that the first release candidate for the next revision of Zend Framework (1.5RC1) is also planned for release the same day. 1.5RC1 will be a good version to download and start testing your applications against to find out what you will need to update in order to migrate to the final release of 1.5.

Posted by Rob on 14th February 2008 under News | No Comments »

Zend_Validate_* now translatable!

If, like me, you’ve been wanting to change the error messages returned from Zend Framework validators then you’ll be pleased to hear that this is now supported in the latest SVN release. For more information read Matthew Weier O’Phinney’s announcement on the mailing list.

Posted by Nick on 8th February 2008 under News | 2 Comments »

The Zend Framework and Dependency Injection

Padraic has posted about Dependency Injection and Zend Framework:

When you start mucking about with objects you eventually realise that the best way to get objects working together towards a unified objective, is through composition. In other words, objects use other objects, which in turn can use others. You end up not with a restrictive inheritance tree, but a pool of objects injected into each other to build up an overall purpose. The problem of course is how to inject one object into another!

Padraic talks about what dependency injection is and why it is so good and how to use it for testing your code. Well worth a read.

Posted by Rob on 5th February 2008 under Around the web | No Comments »