This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Welcome-Post "label_attr on submit btw. button Field Type"

Discuss installing Symfony 2 here

Welcome-Post "label_attr on submit btw. button Field Type"

by Micha2409 » Tue Jan 07, 2014 12:06 am

A very happy welcome @ all and not to forget: HAPPY NEW YEAR! :D~:-D~:grin:

First of all a little "introduction"...
I live in Germany - just to declare the following "mistakes in writing"! ;)~;-)~:wink: (And YES! I like emoticons! :thumbup: )
I'm working (and playing around) with the SF since about 1,5 years. This incredible framework found it's way to me over a "developer-friend" of mine. After a little while I figured out a lot of benefits for my self-made projects and today I use Symfony almost "exclusively".
More informations via PN! :lol:

Now to the "mistake" I found in the Symfony doc. (I am not quite sure if it's a mistake) Let's see...

I tried to setup a submit Field Type. Worked fine.
Than I tried to add a label_attr, but Symfony came up with the error-message: "The option "label_attr" does not exist. Known options are: ..."
OK, so looked in the doc and found the following: ... utton.html
There is no label_attr assigned to the submit Field Type. But French is not really mine... So I changed the fr in the URL to en, and saw the following: ... utton.html
There IS a label_attr assigned.

The same with the button Field Type:
French: ... ubmit.html
English: ... ubmit.html

First question: Is that an error in the documentation?
Second question: Is it possible to give an attribute (like a class) to the label, too? And if yes, how??

Third, but most important question: Is my post at the right place? (Sorry for that 'stupid' question but I'm brand-new here and still have to learn the "structure" in this forum! Please forgive... :oops:

THX & Cheers,
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. :smug:
User avatar
Junior Member
Posts: 1
Joined: Mon Jan 06, 2014 11:17 pm
Location: Germany

Re: Welcome-Post "label_attr on submit btw. button Field Typ

by smugford » Tue Jan 14, 2014 10:56 am

The docs are now kept on GitHub which is freaking awesome.

Post your question as an issue on the repo there.
User avatar
Faithful Member
Posts: 245
Joined: Sun Nov 29, 2009 8:32 pm