21282 Posts in 5730 Topics by 2601 members
|Go to End|
1 July 2010 at 9:20pm
How can I resize an image inside a form?
Suppose I would like to do something like this:
$Employee = Employee::currentUser();
$Image = $Employee->Picture();
$form = new Form($this, "Form",
new LiteralField(''myLiteralField", $Image->paddedResize(200,200)
new FormAction ($action = "myAction", $title = "Save")
//I know there is actually no formfields in this form, this is just an example...
|Go to Top|