public function getValidationError($field)
    {
        // break apart path
        $crumbs = explode('.', $field);

        // resolve path recursively
        $cur = &$this->_validationErrors;
        while ($crumb = array_shift($crumbs)) {
            if (array_key_exists($crumb, $cur)) {
                $cur = &$cur[$crumb];
            } else {
                return null;
            }
        }

        // return current value
        return $cur;
    }
public function getValidationError($field)
    {
        // break apart path
        $crumbs = explode('.', $field);

        // resolve path recursively
        $cur = &$this->_validationErrors;
        while ($crumb = array_shift($crumbs)) {
            if (array_key_exists($crumb, $cur)) {
                $cur = &$cur[$crumb];
            } else {
                return null;
            }
        }

        // return current value
        return $cur;
    }
public function getValidationError ( $ field ) { // break apart path $ crumbs = explode ( '.' , $ field ) ; // resolve path recursively $ cur = & $ this -> _validationErrors ; while ( $ crumb = array_shift ( $ crumbs ) ) { if ( array_key_exists ( $ crumb , $ cur ) ) { $ cur = & $ cur [ $ crumb ] ; } else { return null ; } } // return current value return $ cur ; }
Get a validation error for a given field.

@param string $field Name of the field.
@return string|null A validation error for the field. Null is no validation error found.
Get a validation error for a given field .