Just an FYI, I've experienced situations like this where Firebug and the View Source seems so different. Everytime I've seen this I've missed placing a closing tag or forgot to include a required wrapping tag. As an example I had forgot a <tr> so my <td>'s were not conained correctly. Not sure which one (firefox or firebug) does it but one of them tries its best to correct the html so the data can be displayed.
I'd look for a missing ending tag or invalid structure in your output before you send it to the browser, could be in your layout or how you generate the view. I know the Html helper has caught me a few times on div and spans as one format to the $this->Html->div() will return a fully closed tag and one format will only return the open tag and you need to close it off in a separate call. On Feb 17, 12:03 pm, "designv...@gmail.com" <designv...@gmail.com> wrote: > In case anyone finds this: > > Here's how to change the error message container: > > http://book.cakephp.org/view/1401/options-error > > And an example: > > <?php echo $this->Form->create('Artist', array('inputDefaults' > =>array('div' => array('tag' => 'p'),'between' => '<br />','error' => > array('wrap' => 'span', 'class' => 'bzzz'),'format' =>array('before', > 'label', 'error', 'between', 'input', 'after')))); ?> > > On Feb 17, 4:42 pm, "designv...@gmail.com" <designv...@gmail.com> > wrote: > > > > > > > > > So that seems to be the issue lord alone knows why.... > > > Does anyone know how to change the div to a span for the validation > > errors? ;-) > > > d//t > > > On Feb 17, 4:32 pm, "designv...@gmail.com" <designv...@gmail.com> > > wrote: > > > > Ahh wierd... i was viewing the HTML in Firebug and it was messed up, > > > actually view source in Firefox and its correct... > > > > Hmmm... > > > > (and I know I shouldn't be putting divs inside p tags! hehe) > > > > On Feb 17, 4:27 pm, Jeremy Burns | Class Outfit > > > > <jeremybu...@classoutfit.com> wrote: > > > > Could it be browser behaviour because p is a block level element? > > > > > Jeremy Burns > > > > Class Outfit > > > > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > > > > On 17 Feb 2011, at 16:20, designv...@gmail.com wrote: > > > > > > Hi there, > > > > > > When using the 'inputDefaults' option in Form->create and doing the > > > > > following: > > > > > > <?php echo $this->Form->create('Enquiry', array('inputDefaults' => > > > > > array('div' => array('tag' => 'p'),'between' => '<br />','format' => > > > > > array('before', 'label', 'error', 'between', 'input', 'after')))); ?> > > > > > > Cake seems to close the <p> tag imediately after the label, however if > > > > > I remove this it defaults using a div that surrounds everything. > > > > > > I would have thought that specifying using a P tag instead would still > > > > > act the same... > > > > > > Anyone noticed this? > > > > > > d//t > > > > > > -- > > > > > Our newest site for the community: CakePHP Video > > > > > Tutorialshttp://tv.cakephp.org > > > > > Check out the new CakePHP Questions > > > > > sitehttp://ask.cakephp.organdhelpotherswith their CakePHP related > > > > > questions. > > > > > > To unsubscribe from this group, send email to > > > > > cake-php+unsubscr...@googlegroups.com For more options, visit this > > > > > group athttp://groups.google.com/group/cake-php -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php