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