Monday, August 31, 2009

Re: How to stop html->link helper adding line breaks

Do you have your own AppHelper defined? I saw a tip once for getting
HTML output with newlines:

class AppHelper extends Helper
{
function output($string)
{
return parent::output("${string}\n");
}
}

Maybe that's the problem? In any case, the newlines should be ignored
by the browser.

On Mon, Aug 31, 2009 at 5:23 AM, WebbedIT<paul@webbedit.co.uk> wrote:
>
> Anybody?  I have now started seeing this with other helpers, such as
> time, when I have a comma or fullstop appearing after the html the
> helper generates.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: