Your first suggestion is what I went with when I wanted to do the
same. I figure there's no great need to have Cake output a label. It's
convenient but, to get the markup I wanted, it made more sense to go
around it.
As for extending the helper, I tried that, too, at the time. But I
never could q
Hey Marcelo,
You could just do something simply like:
My label: input('MyModel.field', array
('label'=> false)); ?>
Or even better: Make your own helper that extends the Cake FormHelper
and has a method that does this.
-Matt
http://www.pseudocoder.com
On Jan 25, 11:59 am, Marcelo Andrade wrote
Perhaps place the $form->input within as an argument for $form->label
and have it not escape?
--~--~-~--~~~---~--~~
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
committees! I hate the float model, myself.
Anyway, it'd be best if Cake's mark-up was as configurable as the
specs allowed for. I'm not saying it isn't already. I'm probably
missing something. And, if it isn't, I'm sure it's not trivial to make
it so. I did once need (want) to change Cake's labe
Eh it may be valid, I just don't believe it should be used that way.
That's what block elements like div are used for. You also have a lot
more control over the styling when not wrapping it in the label.
--~--~-~--~~~---~--~~
You received this message because you ar
looks like all of the various HTML & XHTML versions:
http://www.w3.org/TR/WCAG20-TECHS/H44.html
On Mon, Jan 26, 2009 at 12:16 AM, Brian Williams wrote:
> just out of curiosity... valid for which doctype?
>
>
>
> On Sun, Jan 25, 2009 at 11:31 PM, brian wrote:
>>
>> Call it what you like, the s
just out of curiosity... valid for which doctype?
On Sun, Jan 25, 2009 at 11:31 PM, brian wrote:
>
> Call it what you like, the syntax remains valid.
>
> On Sun, Jan 25, 2009 at 10:39 PM, Miles J wrote:
> >
> > Its called using a div or a span.
> > >
> >
>
> >
>
--~--~-~--~~-
Call it what you like, the syntax remains valid.
On Sun, Jan 25, 2009 at 10:39 PM, Miles J wrote:
>
> Its called using a div or a span.
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post
Its called using a div or a span.
--~--~-~--~~~---~--~~
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
On Sun, Jan 25, 2009 at 8:21 PM, brian wrote:
>
> One reason for using the implicit syntax is for styling. In some
> situations, it may be easier to define CSS rules for a label which
> wraps the input.
That's my case.
I've found this ticket, but is not exactly related.
https://trac.cakephp.org
That syntax is fine. The difference is that, in wrapping the input
with the label, the label is implicit, and so the for attribute is
unnecessary. When using the for="" syntax, the label is explicit. Both
are acceptable but some screen-readers don't handle the implicit
syntax well.
One reason for
I do not believe that is possible unless you build the elements
yourself without the helper.
Is there a reason your wrapping it like that? I do believe that is
incorrect syntax.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
Hi all,
What's the better way to make the output of this
echo $form->input('MyModel.field', array('label'=> 'My label:'));
generate labels surrounding the input element like
this
My label:
instead of "http://pa.slackwarebrasil.org/
For Libby's backstory be told on Lost
http://www.petitionon
13 matches
Mail list logo