Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add multiple binding support to FormHelper #455
Currently FormHelper can only be tied to one binding. However there are many scenarios on which more than one binding is needed, such as a form that deals with two or more entities.
This pull request adds support for multiple bindings to forms without affecting BC. It follows a very simple approach (greatly improved by @nateabele), and allows one to easily create multi-entity forms:
<?php echo $this->form->create(compact('user', 'profile')); echo $this->form->field('user.email'); echo $this->form->field('profile.name'); echo $this->form->field('profile.about'); ?>