4d47 / php-form-helper Goto Github PK
View Code? Open in Web Editor NEWA featureless form helper
License: MIT License
A featureless form helper
License: MIT License
Hi,
This is not an "issue", but have an architectural question for you (if you have time for it -- if not I totally understand):
I'm wondering if this library can be conceptually simplified even more by not using the Form::check
static method (and then catching DomainExceptions). What if, instead, there was just a validate
function that returned the $errors
array? Or if the anonymous function just returned null
if no errors or the error message if there are errors?
Maybe the answer is "sure, whatever... doesn't matter". But I'm curious if you remember why you chose to implement it the way you did. Seems that calling a static method and throwing/catching exceptions might not be the most straightforward way, but maybe it is simpler in some contexts?
Genuinely curious to learn more about the design decisions here, not trying to argue or persuade you or anything. This little library has brought much joy to me in the past couple of weeks... I am enlightened on how freaking easy this form stuff can really be!
Thank you!
Hi,
I don't have an issue, I just wanted to say that this thing is fantastic -- it's exactly what I wanted. And your description strikes a chord with me... why the heck does every form builder try to output the damn markup for me? Sheesh...
Anyway, thanks, this is great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.