Ok, I found out something. It was the line where I was putting out "<legend>Stuff</legend>". When I commented out that line things were better. I had just forgotten that was supposed to be a fieldset "<fieldset><legend>Stuff</legend>".
Then I discovered having a /div inside a fieldset ends the fieldset, so that was weird too. Something was inserting the </fieldset> before my code actually inserts it. Is it Firefox doing this? I turned off all my addons just to see, no change. A mystery, wrapped in bacon! On Dec 5, 2:25 pm, Nancy <[email protected]> wrote: > This formatting happens in a helper and I return the $out variable and > echo it. > > foreach ($this->data['Resumeitem'] as $ri) > { > > # debug(Sanitize::html($res->formatSection($ri, $count))); > echo $res->formatSection($ri,$count); > echo "\n\n"; > $count++; > } > > The bottom of the $res->formatSection is just: > > return $out; > > That debug() statement shows me the raw html and it looks absolutely > right as it comes from the helper. But when it gets output it's all > weird. > > I did a bit of testing and it seemed like this weirdness with div's > wasn't happening in the view so maybe I'll just move this function to > the main view code, rather than the helper. But I sure wish I > understood what was happening. I commented out everything in my > app_controller just to make sure there wasn't something in there > messing up, moved my css file out of the way. Those were the most > obvious places where I could imagine weird things like this happening, > but that didn't change anything. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
