Form.php
public function handle($callback = null, $errorsCallback = null)
    {
        if ($this->posted()) {
            $errors = $this->check();

            if (!$errors) {
                if (null !== $callback) {
                    $callback($this->getData());
                }
            } else {
                if (null !== $errorsCallback) {
                    $errorsCallback($errors);
                }
                return $errors;
            }
        }

        return array();
    }
public function handle($callback = null, $errorsCallback = null)
    {
        if ($this->posted()) {
            $errors = $this->check();

            if (!$errors) {
                if (null !== $callback) {
                    $callback($this->getData());
                }
            } else {
                if (null !== $errorsCallback) {
                    $errorsCallback($errors);
                }
                return $errors;
            }
        }

        return array();
    }
public function handle ( $ callback = null , $ errorsCallback = null ) { if ( $ this -> posted ( ) ) { $ errors = $ this -> check ( ) ; if ( ! $ errors ) { if ( null !== $ callback ) { $ callback ( $ this -> getData ( ) ) ; } } else { if ( null !== $ errorsCallback ) { $ errorsCallback ( $ errors ) ; } return $ errors ; } } return array ( ) ; }
Check a form, helper function
Check a form helper function