You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in the Application > Request part of the book there is an example about using Silex to validate the form and proceed with user signup:
// On a more elaborate Silex application that uses the Form
// component to capture and validate parameters, it would look like this:
$app->match('/signup', function (Request $request) use ($app) {
$form = $app['sign_up_form'];
$form->handleRequest($request);
if ($form->isValid()) {
$data = $form->getData();
.....
As I understand you might be configuring additional validation rules for the Silex Form like validating email etc., and that those rules might be a copy of how the same data is validated in the domain model, which is probably hard to maintain?
The text was updated successfully, but these errors were encountered:
Hi, in the Application > Request part of the book there is an example about using Silex to validate the form and proceed with user signup:
As I understand you might be configuring additional validation rules for the Silex Form like validating email etc., and that those rules might be a copy of how the same data is validated in the domain model, which is probably hard to maintain?
The text was updated successfully, but these errors were encountered: