Hi there
How can I resize an image inside a form?
Suppose I would like to do something like this:
function ImageForm()
{
$Employee = Employee::currentUser();
$Image = $Employee->Picture();
$form = new Form($this, "Form",
new FieldSet(
new LiteralField(''myLiteralField", $Image->paddedResize(200,200)
),
new FieldSet(
new FormAction ($action = "myAction", $title = "Save")
),
new RequiredFields());
//I know there is actually no formfields in this form, this is just an example...
return $form;
}
Thanks, Joel