Re: [fw-general] Dojo capturestart/end inserting a '1'

2008-10-08 Thread Matthew Weier O'Phinney
-- Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote
(on Wednesday, 08 October 2008, 01:55 PM -0400):
> -- 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:
> > > 
> > > 
> > > After:
> > > 
> > > 
> > 
> > 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.

Fixed in trunk and 1.6 release branch

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


Re: [fw-general] Dojo capturestart/end inserting a '1'

2008-10-08 Thread Matthew Weier O'Phinney
-- 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:
> > 
> > 
> > After:
> > 
> > 
> 
> 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/


Re: [fw-general] Dojo capturestart/end inserting a '1'

2008-10-08 Thread Ken Petri



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:
> 
> 
> After:
> 
> 
> 
> 

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.


-- 
View this message in context: 
http://www.nabble.com/Dojo-capturestart-end-inserting-a-%271%27-tp19872912p19880708.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Dojo capturestart/end inserting a '1'

2008-10-08 Thread Alessandro Camilli



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:


After:




-- 
View this message in context: 
http://www.nabble.com/Dojo-capturestart-end-inserting-a-%271%27-tp19872912p19873815.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Dojo capturestart/end inserting a '1'

2008-10-07 Thread Ken Petri

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!
-- 
View this message in context: 
http://www.nabble.com/Dojo-capturestart-end-inserting-a-%271%27-tp19872912p19872912.html
Sent from the Zend Framework mailing list archive at Nabble.com.