Skip to content
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

Phorm->open() attributes support added #6

Open
wants to merge 49 commits into
base: master
Choose a base branch
from

Conversation

stevelacey
Copy link

Phorm->open() did not make use of its attributes argument, this can now be used to add to the attributes applied and overwrite existing, should be backwards compatible.

Thomas and others added 30 commits November 17, 2009 09:36
…pejs) for real-time and client-side validation (example updated).
…ue is not

an array; it may simply have received no input.
…is for CheckboxWidgets. But it'd probably be better to have a single OptionsField and choose between radio and checkbox widgets at instantiation.
- Little API changes (use PhormValidation::Required instead of a callback function for required fields)
- Little speed inprovements
- Better integration of live (javascript) validation.
- Add support for translations
- W3C validation passed
- Better html indentation
- Add Phorm::display() to display a complete form
- Merge of Phorm and PhormExt, please use Phorm (class name) now
- Bug fixes
…efault, or optionally an OptionGroupWidget with RadioWidgets or CheckboxWidgets if specified.
…lean_data method, add get_raw_value (for post-validate to get access to values that haven't made available yet -- yuck!), and move error gathering and value gathering directly into their respective functions.
Removed Javascript files, its gonna happen later when an Ajax way is introduced in parallel with the proper server-side way.
Removed docs (regenerate later when everything is smooth).
Removed extra examples and classes.
Splitted classes to files.
Unified loading of classes.
Started implementing filter_var wherever possible.
Fixed a lot of PHPDoc comments.

Signed-off-by: Petsagourakis George <[email protected]>
petsagouris and others added 19 commits September 8, 2010 23:50
…nteger", added $size param to Decimal and Integer fields, simplified built-in 'required' validation, changed default form method from GET to POST, added display_errors() function to output ALL error messages, and added a public fields() function to expose all form field objects for looping. Added a new example file, and cleaned up some code and comments.
add validate_required_field: checks if checkbox is checked in case of "required" validator.
add further checks in file_was_uploaded
- added missing parameters to Hidden#label() and Hidden#help_text() to match superclass signatures
- value was html-escaped twice in this function, resulting in broken forms
- added explicit check for 0 to circumvent cast to false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants