开发者

Zend disableLayout() leaves html & body tags in output

开发者 https://www.devze.com 2022-12-23 17:52 出处:网络
could anyone take a look at this for me? Problem: trying to output a csv on demand using Zend Framework. I want to avoid creating files on the system so I\'m trying to use the开发者_Go百科 same solut

could anyone take a look at this for me?

Problem: trying to output a csv on demand using Zend Framework. I want to avoid creating files on the system so I'm trying to use the开发者_Go百科 same solution posted here:

export csv in zend framework

However - I'm getting 3 blank lines in the csv (and in any HTML source when viewed). I'm setting layouts in the ini file. I've tried putting the csv call earlier in the request cycle using preDispatch etc - but to no avail.

Any help is greatly appreciated SWK


Problem solved: (my apologies, this is quite frequent - it's like when you ask someone to come over to your desk to check your bug, and everything mysteriously works....)

I was closing php tags in a front controller plugin,thus generating new lines.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号