I can't recall where I saw this. Works for me.
<?php
class AppHelper extends Helper
{
/**
* Allows for readable HTML source
*/
function output($string)
{
return parent::output("${string}\n");
}
}
On Sat, Jul 25, 2009 at 4:55 AM, Shaun<[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---