-- pat <[EMAIL PROTECTED]> wrote
(on Wednesday, 18 July 2007, 06:15 AM -0500):
> Did we ever agree on a way to turn off the view renderer so that it is
> not initialized. I know there was talk about it, but I don't remember
> the final decision.
As others have pointed out, $front->setParam('noViewRenderer', true) is
the way to do this. The code was changed prior to the 1.0.0 release such
that it is not instantiated until dispatch(), and not at all if the
above setting is in place.
> It is over 800 lines of code. That is a lot of code to init each time
> if you are not using its features.
Actually, over half that line count is comments, and probably 1/2 - 1/3
of what remains are whitespace and braces from control statements. It's
not that big, really. If you're worried about 800 lines of code, you may
not want to be using the MVC. ;-)
> Are there any side effects of not using it? Does anything else depend
> on it?
Currently, no, but a future layout solution may utilize it to ensure
path specifications stay the same.
Additionally, by *not* using it, you lose out on:
* auto-instantiation of the view (you have to do it manually)
* autodiscovery of view scripts based on the current action
* auto-rendering of views (you have to do it manually)
Basically, you may end up adding back a lot of those lines of code you
saved by not using it in the first place. :-)
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/