-- Ken Petri <[EMAIL PROTECTED]> wrote
(on Wednesday, 08 October 2008, 08:05 AM -0700):
> Alessandro Camilli wrote:
> > Ken Petri wrote:
> > > When I use any capturestart/captureend for rendering out content panes,
> > > accordion panes, etc., There is a '1' inserted into the div for the
> > > widget. Is there a way to suppress this?
> > > 
> > > Thanks!
> > > 
> > Try to remove the '=' in the first tag of php code.
> > before:
> > <?= code....   ?>
> > <?= code...   ?>
> > After:
> > <? code...?>
> > <?= code ...?>
> 
> Thanks Alessandro. I went through the application and removed the "=" from
> all captureStart lines of code. This has fixed the problem. 
> 
> With the standalone helpers--ones where I'm not using captureStart/End but
> just declaring the helper as a single enclosed chunk of code--the "=" needs
> to stay in. 
> 
> Can you or anyone explain why this fix is necessary? I noticed it is
> necessary whether you use the short_php_tags syntax or use an echo.

Actually, it shouldn't be an issue -- but looking at the code, I'm
returning the return of ob_start() -- which is a boolean (in this case,
1), and when cast to a string emits a value. I've created an issue in
the tracker for this:

    http://framework.zend.com/issues/browse/ZF-4522

and you should see it come through svn shortly.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to