Giter Site home page Giter Site logo

minacl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

nathanwhitworth

minacl's Issues

Errors in views

If you have a view template like:

The warning/fatal seems to be passed into SimpleXMLElement, so all you get is an XML parsing error.

Validators firing

All validators, apart from phRequiredValidator, should not fire if the value is empty

phForm::__toString throwing exceptions

__toString methods if they throw exceptions mask the actual error that occurred because PHP rethrows something like:

Fatal error: Method phForm::__toString() must not throw an exception in /home/rob/html-forms/test/unit/phViewTest.php on line 433

This will occur when you try "echo $form;" and for some reason an exception is thrown.

It would be better to trigger an error with the original exception type, code & message.

Bug: checkbox array values

If a set of checkboxes is defined on the form as an array fieldName[] for example, then minacl throws an error if none of them are checked (even without a validator being applied).

Message: Trying to bind a value that is not an array to interest
#0 C:\wamp\www\xxx\application\models\form\phForm.php(173): phSimpleArrayDataItem->bind(NULL)
#1 C:\wamp\www\xxx\application\models\form\phForm.php(252): phForm->bind(Array)

Conditional validator

A decorator type validator that fires another validator if a condition is met e.g. if a field equals another value could be very useful.

It would cover off various scenario's such as firing different post/zip code validators depending on a chosen country.

Might be possible to abstract phCompareValidator and extend from it as it has alot of this equals, greater equals etc type behavior.

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.