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, "[email protected]" <[email protected]> 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 > > <[email protected]> wrote: > > Could it be browser behaviour because p is a block level element? > > > Jeremy Burns > > Class Outfit > > > [email protected]http://www.classoutfit.com > > > On 17 Feb 2011, at 16:20, [email protected] 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.organdhelp > > > others with their CakePHP related questions. > > > > To unsubscribe from this group, send email to > > > [email protected] 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
