-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Radio element in Phalcon/Element #1646
Comments
echo \Phalcon\Tag::radioField(array('test', 'value' => 1, 'checked' => 'checked')); |
No, I want to create a radio element in the form.
but Phalcon\Element doesn't have Radio class for create input element with type radio... |
I'm confused because what sjinks posted creates a radio element as you need. |
ok, how i can add validators for element, which sjinks recomended? |
The solution from @sjinks is used in the view. Some of us like to extend the Form class and do all the logic there and only the display in the view. Specifically, there are no cphalcon/ext/forms/element/radio.c or cphalcon/ext/forms/element/radio.h files that would allow you to: use Phalcon\Forms\Element\Radio; |
yea, i extend Phalcon\Forms\Element for create Radio element. Reason for creating the question is to know whether there are other solutions by phalcon |
Awesome, thanks. Now to just wait till 1.3.0 comes out 👍 |
When this version is coming ? |
needed in 1.2.x cf phalcon/cphalcon#1646 (comment)
needed in 1.2.x cf phalcon/cphalcon#1646 (comment)
whether it is possible to create an element the form type of radio?
The text was updated successfully, but these errors were encountered: