f/f-bootstrap-form

PHP Bootstrap Form Helper

v4.1 2016-10-13 01:03 UTC

This package is not auto-updated.

Last update: 2024-04-17 17:05:23 UTC


README

PHP Bootstrap Form helper 4.0 (previously PFBC/PHP Form Builder Class)

Documentation :: Discussions :: Issues

Elements Demo :: Source Code

Bootstrap4 Elements Demo :: Source Code

Latest Features:

  1. Bootstrap 3 and 4 support
  2. Added new simple API. Old API is still supported
  3. Added 'shared' element property to share 1 row between multiple elements in SideBySide View
  4. View class renamed to FormView class
  5. Added Form::renderArray() helper function
  6. Fixed prepend and append properties handling
  7. Added icon property to buttons

New API:

Form::open ("login");
echo '<legend>Login</legend>';
Form::Hidden ("id");
Form::Email ("Email Address:", "email", array("required" => 1));
Form::Password ("Password:", "password", array("required" => 1));
Form::Checkbox ("", "remember", array("1" => "Remember me"));
Form::Button ("Login");
Form::Button ("Cancel", "button", array("onclick" => "history.go(-1);"));
Form::close ();