[symfony-users] Re: Remove whitespace from the output

2009-06-21 Thread Gareth McCumskey
Well I still like to ask what the reason behind this is? Most users couldn't care less about what the whitespace is in the source of a web site they use as long as that web site works as they want it to. Removing it save bandwidth would save you so little it would be negligible. If you are looking

[symfony-users] Re: Remove whitespace from the output

2009-06-21 Thread Bernhard Schussek
Hi, On Sun, Jun 21, 2009 at 8:53 AM, HiDDeN wrote: > Yes, but it would remove ALL spaces (including the ones inside the > content). So, all the page sentences will be affected too. How exactly you remove the whitespace is, of course, a matter of algorithm. I just wanted to point out where in th

[symfony-users] Re: Remove whitespace from the output

2009-06-20 Thread HiDDeN
Yes, but it would remove ALL spaces (including the ones inside the content). So, all the page sentences will be affected too. On 20 jun, 13:00, Bernhard Schussek wrote: > Hi, > > You could always use a filter that removes the whitespace from the > response > HTML:http://www.symfony-project.org

[symfony-users] Re: Remove whitespace from the output

2009-06-20 Thread Bernhard Schussek
Hi, You could always use a filter that removes the whitespace from the response HTML: http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_filters In the filter you can retrieve the content from the response using $response->getContent(), remove all whitespace and se

[symfony-users] Re: Remove whitespace from the output

2009-06-20 Thread HiDDeN
I think I didn't explain myself well. I meant the html output to the user, not my php scripts. Thanks for your response anyway :) On 19 jun, 15:15, Gareth McCumskey wrote: > For one you actually do need whitespace between certain elements. For > another, why would you need to remove all whites

[symfony-users] Re: Remove whitespace from the output

2009-06-19 Thread Gareth McCumskey
For one you actually do need whitespace between certain elements. For another, why would you need to remove all whitespace for a PHP script? It doesn't make unreadable and all it does is make any attempt at maintenance impossible. Being server side, having whitespace and PHP script file sizes do no