Coder Social home page Coder Social logo

php-form-helper's People

Contributors

4d47 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-form-helper's Issues

Thanks!

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.

Design decision behind Form::check() / DomainException

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.