It's best not to use closing PHP tag at all (if you don't plan on having
html at the end of the file).

Most PHP classes files won't have HTML in them, so omitting the closing tag
gives you peace of mind when it comes to whitespace.

It has become a rule in PSR-2 (
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md#22-files
)


-- 
      __
     /.)\   +48 695 600 936
     \(./   [email protected]


On Thu, Mar 7, 2013 at 3:20 AM, pobrejuanito <[email protected]> wrote:

> Your guess was right. There was 4 spaces after the closing tag ?>  in the
> controller. I removed the tag and the spaces and its not there anymore.
>
> Thank you!
>
>
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/4-whitespaces-appended-on-Response-Body-tp4659403p4659406.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: [email protected]
> Info: http://framework.zend.com/archives
> Unsubscribe: [email protected]
>
>
>

Reply via email to