Hi all,

http://framework.zend.com/wiki/pages/viewpage.action?pageId=33071

Over the past few months I've had a lot of fun using the Zend Framework - kudos 
to all those involved. I complain a lot about ZF views, but that doesn't 
reflect my opinion on the whole framework (impressions to the contrary perhaps 
;)). Back on track...

I have submitted a proposal called "Zend_View Enhanced". If anyone's followed 
my blog since May, I've been talking a lot about Views and how I think they 
should be used. It's a whole bunch of wordy entries you can entertain yourself 
(or maybe send yourself to sleep) reading. The proposal revolves around adding 
some standard View Helpers and a handful of methods to Zend_View_Abstract. 
Helpers are generally preferable to lumping more stuff into 
Zend_View_Abstract...

In combination they allow a developer to construct output more flexibly. To put 
the idea across, I've defined four pieces of functionality for this proposal:

1. Partials
2. Controllers
3. Layouts
4. Placeholders

(Read the blog or Proposal for what these mean if you haven't seen the terms 
before.)

These are in addition to the currently available stuff I call:

5. Includes (typical PHP include)
6. Response Segmentation (Zend_Controller_Response_Http named segments)
7. Same-Scope Partials (using Zend_View_Abstract::render() for extra 
sub-templates)

Hopefully the Proposal makes for an interesting read. Not sure if its a 
direction everyone wants or feels is needed, but your feedback and critique is 
very welcome. I get the feeling these can get somewhat obscure, so bear in mind 
they are not intended to impinge on existing functionality and are intended as 
being completely backwards compatible.

The only unavailable dependent behaviour are some Setters for ViewRenderer (as 
I submitted in #ZF-1545). Proposal is currently marked "Under Contruction" 
until ZF-1545 is resolved or given a good kick out a door.

Any questions, kick them out there.
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com





       
____________________________________________________________________________________Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

Reply via email to