Sunday, March 29, 2009

Re: empty spaces when using $this->element

On Sun, Mar 29, 2009 at 5:25 PM, CheshirePuss <CheshirePuss42@gmail.com> wrote:
>
> 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?

Developing for IE is probably never going to be "normal" :-) That
said, where, exactly, are you seeing this? Inside the DIV? Before?
After?

Also, the "[]" you posted is not the usual unknown symbol square, but
a pair of square brackets. Or did you just post that to represent the
square?

One other thing: which editor are you using? I'm wondering if this is
the infamous UTF8/BOM/Microsoft problem.

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