hi hugo

On Tue, July 20, 2010 3:07 pm, Hugo M wrote:
> Hi all! I have a question, I'm making forms using form helper.
>
> What's better, creating forms with tables or with divs? Divs are the only
> way to create forms with the cakePHP form helper, right?
>
> I'm not a css master :P, so maybe I don't understand very well why using
> divs instead of tables in forms (I understand the difference when creating
> nomal page content). The real problem is that I need to do something like
> http://jquery.bassistance.de/validate/demo/milk/ but I don't want to have
> an
> ugly code like:
>
> <tr>
> <td>
> <?= $form->input(...) ?>
> </td>
> </tr>
>
> etc.
>
> I want:
>
> <?
> echo $form->create(...);
> echo $form->input(...);
> ?>
>
> etc. :P
>
> Is that possible with tables? Can I make something like the link example
> without tables?

it is indeed possible without tables. the example you sited doesnt use
them either.

you'll be able to use output from form helper to achieve this although can
be a bit tricky to support old browsers.

tables are for display of tabular data not for styling.

the styles already defined in cake.generic.css will get you most of the
way there although you'll need to study the style sheet in
http://jquery.bassistance.de/validate/demo/milk/  to tighten it all up.

mikek

-- 
Mike Karthauser
Managing Director - Brightstorm Ltd

Email: [email protected]
Web: http://www.brightstorm.co.uk
Tel:  07939 252144 (mobile)
Fax: 0870 1320560

Address: 1 Brewery Court, North Street, Bristol, BS3 1JS

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

Reply via email to