adamwathan / form

Super basic form HTML builder, only really exists so I can pull it in for some other more useful projects.
MIT License
232 stars 117 forks source link

Allow passing an array to data()-function #70

Closed marank closed 8 years ago

marank commented 8 years ago

This simplifies passing multiple data attributes from the controller to the model and helps writing clean code when multiple data attributes are needed.

adamwathan commented 8 years ago

Nice idea! Can you add a test around here? https://github.com/adamwathan/form/blob/master/tests/TextTest.php#L231

Will merge after that :+1:

marank commented 8 years ago

Done. I hope everything's okay, to be honest I never used PHPUnit before.

adamwathan commented 8 years ago

Thanks!