2008年8月4日星期一

Re: [fw-mvc] View scripts and streams

-- Guillaume Rossolini <g.rossolini@gmail.com> wrote
(on Monday, 04 August 2008, 02:17 PM +0200):
> Since streams are used in view scripts, I have noticed two things that do not
> work any more:
> - I can't comment out any code in my view scripts;
> - I can't put a break point with Xdebug.
>
> Does anyone know of a way around this?

First, you can disable the streams:

$view->setUseStreamWrapper(false);

(this will be by default before the 1.6.0 final release, actually;
you'll need to explicitly enable the setting)

Second, how are you commenting out code in your view scripts, exactly? I
can't reproduce this particular issue...

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: