Sunday, March 29, 2009

empty spaces when using $this->element

I have noticed that when I put something like this:

<div id="sidecontent"><? echo $this->element('tag_list');?></div>

in my default layout, with this in tag_list.ctp:

<div class="taglist"></div>

the result is that there is a textnode before the beginning of the
element, so that when i look at the source in ie7, it shows "[]", the
square representing an unknown symbol i think. This is of course
annoying with css and layout. How can I remedy this? Or am i missing
something and this is normal?


--~--~---------~--~----~------------~-------~--~----~
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: