Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ORO Meetup #4

ORO Meetup #4

Frontend Validation

Oleg Zinchenko

February 22, 2016
Tweet

More Decks by Oleg Zinchenko

Other Decks in Programming

Transcript

  1. Twig Rendering {# app/Resources/views/default/new.html.twig #} {{ form_start(form) }} {{ form_errors(form)

    }} {{ form_row(form.task) }} {{ form_row(form.dueDate) }} {{ form_end(form) }}
  2. Result-2 <div> <label for="advert_title" class="required">Title</label> <input type="url" id="advert_title" name="advert[title]" data-message-notblank="This

    value should not be blank." data-message-url="This value is not a valid URL." data-constraint="NotBlank Url" /> </div>