SomeForm form = new SomeForm();
if(form->wasSent())
{
if(form->validate()
{
BusinessLogic.saveEntity(form->field->getValue());
System.redirect('/confirm');
}
}
//render page with form
SomeForm form = new SomeForm();
form->processRequest();
//render page with form