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'].' '); > > A 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 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 > [email protected] For more options, visit this group at > http://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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
