Abhoryo / APYJsFormValidationBundle

This bundle performs validations of a form in javascript. (i18n compatible and several javascript frameworks supported)
92 stars 23 forks source link

unable find template #32

Closed Barno closed 11 years ago

Barno commented 11 years ago

i follow the example but i have this error before render the form's page

Unable to find template "APYJsFormValidationBundle:Constraints:CountValidator.js.twig" in APYJsFormValidationBundle::JsFormValidation.js.twig at line 52.

Abhoryo commented 11 years ago

The bundle isn't update with the last symfony constraints.

For now you can add a file CountValidator.js.twig in APYJsFormValidationBundle/Resources/views/Constraints/ with the following content:

function Count(field, params)
{
    var value = field && field.nodeName ? {{ getJsFormElementValue('field') }} : field;

    return true;
}
Barno commented 11 years ago

Thank you, it's works