define('LF', "\n"); or even define('LF',PHP_EOL); in bootstrap (last one uses the php internal constant)
now you can globally use echo LF.$html->meta(...).LF.LF; as oven as you want in your layouts :) On 25 Jul., 13:29, majna <majna...@gmail.com> wrote: > echo $html->meta(...). "\n\t"; > > On Jul 25, 10:55 am, Shaun <sbef...@gmail.com> wrote: > > > I'm using HTML helpers like $html->charset() and $html->meta() on > > separate lines, but of course the output is printed all on one line, > > which is very long and requires me to scroll horizontally when viewing > > the HTML source code. I would like to tidy this up a bit and force a > > newline after each of my helper statements. What's the best way to do > > this? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---