Sunday, March 29, 2009

Re: empty spaces when using $this->element

I've never heard of FlashDevelop, though googling "FlashDevelop BOM"
shows a few hits. Have a look.

BOM stands for Byte Order Mark, btw.

On Sun, Mar 29, 2009 at 6:18 PM, CheshirePuss <CheshirePuss42@gmail.com> wrote:
>
> The "[]" was indeed a representation, not the actual output, should
> have clarified that.
> I am using FlashDevelop, which has php highlighting, and a nice tree
> structure.
> Btw, the empty space is there in firefox too, when i check it with
> firebug, but there the 'box' doesn't appear, only empty space.
> It appears at the begining of the element, so it ends up like this:
>
> <div id="sidecontent">[]<div class="taglist"></div></div>
>
> On Mar 29, 11:58 pm, brian <bally.z...@gmail.com> wrote:
>> On Sun, Mar 29, 2009 at 5:25 PM, CheshirePuss <CheshirePus...@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: