Re: [fw-general] viewRenderer unanswered questions

2007-06-09 Thread Kevin McArthur

There's a proposal on the wiki authored by Ralph Schindler. However,
this, or any other component like it, will not be shipped by 1.0.0.


Shipping 1.0 with the view renderer on and without some sort of simple 
two-step view, will cause the standardization of the header.tpl/footer.tpl 
concatenated view approach. I know you don't feel the current 
write-a-custom-plugin approach for two-step view's is 'advanced' but I just 
cannot agree with that opinion.


I strongly feel that not including formal layout/two-step support in 1.0 
would be a mistake. Layout is an elegant solution, it works and it should be 
fast-tracked through as it is simply a response to the 11th hour 
introduction of the new view renderer.


If it cannot be included, the view renderer should be disabled by default.

$0.02

Kevin







Re: [fw-general] viewRenderer unanswered questions

2007-06-09 Thread Matthew Weier O'Phinney
-- pat <[EMAIL PROTECTED]> wrote
(on Friday, 08 June 2007, 08:05 PM -0500):
> There were several questions about the new viewRenderer, but I'm not sure if
> they were answered.
> 
> 
>  1. Did Kevin McArthur finish his Layout style renderer to allow nested
> templates?

There's a proposal on the wiki authored by Ralph Schindler. However,
this, or any other component like it, will not be shipped by 1.0.0.

>  2. Will the viewRenderer be turned off by default.

No. However, I will be modifying slightly the point at which it is first
instantiated to prevent loading it if a developer does not want it.

>  3. Will the viewRenderer have a render_to_string() function?.

Possibly. You can already do this to a degree by rendering from the
ViewRenderer's view object; the difference is you have to supply the
view script:

$content = $this->_helper->viewRenderer->view->render($script);

You can also alway render to a named segment in the response and
retrieve it:

$this->render('form', 'loginForm');
$form = $this->getResponse()->getBody('loginForm');

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] viewRenderer unanswered questions

2007-06-08 Thread Kevin McArthur
1.

First, its Ralph that's writing Zend_Layout ... I'm just a groupie... and yes 
its done. I'm using it and it works great.

http://svn.ralphschindler.com/repo/ZendFramework/Zend_Layout/library/Zend is 
the current working location.

As for its inclusion -- theres some process to go through for that and I think 
ralph wanted to put the finnishing touches on it before submitting it for 
inclusion.

2. No.
3. You should be able to disable the fw's output buffer, and catch it in your 
own. But i dont know of any string target for the output. Though, configurable 
rendering targets wouldn't be a bad idea =P

Kevin
  - Original Message - 
  From: pat 
  To: Zend Framework General 
  Sent: Friday, June 08, 2007 7:05 PM
  Subject: [fw-general] viewRenderer unanswered questions


  To List,

  There were several questions about the new viewRenderer, but I'm not sure if 
they were answered.


1.. Did Kevin McArthur finish his Layout style renderer to allow nested 
templates? 
2.. Will the viewRenderer be turned off by default. 
3.. Will the viewRenderer have a render_to_string() function?. 


  thanks 

  pat