The only real use for generating HTML with the helper is when you are
packaging markup from within a helper. Just manually write it in the
view.

On Feb 21, 7:20 am, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> I went down the whole Html->tag route once and then methodically went through 
> and unpicked it; it just didn't make sense in 99.9% of all instances.
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 21 Feb 2012, at 15:16:09, jeremyharris wrote:
>
>
>
>
>
>
>
> > The reason is because $text is empty. HtmlHelper::div uses HtmlHelper::tag 
> > which documents that it will only print the starting tag if no text is 
> > within the tag. I personally don't like this behavior. That's why you'll 
> > see things like this in baked code
>
> > echo $this->Html->tag('div', $post['Post']['name'].'&nbsp');
>
> > A &nbsp; is appended just in case the value is empty, so to make sure it 
> > includes a closing tag. So at the very least you'll need something in there.
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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

Reply via email to