CakePHP-SplitForm-Helper is a project mainly written in PHP, it's free.
Splits grouped form inputs into separate groups or individual inputs
This helper allows you to break apart multi-selects, checkbox groups, and radio groups into multiple places on the page.
If you've ever wanted something like:
[ ] Choice A
This choice would give you lots of options such as:
- Long hair
- Youthful vigor
- STDs
[ ] Choice B
This is the wrong choice. People who select it are:
- Morons
- Short
- Have ED
This allows you to add content in between the form inputs. You can also separate inputs into small groups.
Fruits:
- ( ) Apple
- ( ) Orange
- ( ) Pair
Vegatables:
- ( ) Cabbage
- ( ) Carrots
- ( ) Potatoes
plugins/split_form
var $helpers = array('SplitForm.SplitForm');
$this->set('categories', $this->Post->Category->find('list'));
echo $this->SplitForm->input('Category', 7);
echo $this->SplitForm->input('Category', array(3, 2, 6, 7));
echo $this->SplitForm->input('Category', array( 3 => 'Category 3', 2 => array('label' => 'Category 2', 'class' => 'special') ), array('legend' => 'Category group 1'));