48 $title =
"Edit Details for {$image->title}";
53 $title =
"Add a New Image to {$gallery->gallery_name}";
57 $form =
new AutoForm(
$image,
"POST",
"/action/image_picker/image_upload?gallery_id=$gallery_id");
64 $form->data->owner_id =
$user->getPrimaryKeyValue();
71 $form->required(
"title");
72 $form->hide(
"thumbnail",
"gallery_id",
"owner_id");
77 $form->ajaxSubmit(
"function(result) {var imagePicker = new ImagePicker(); imagePicker.hideUploadPopup(); imagePicker.showImages($gallery_id);}",
"function() {document.id('{$form->id}_error').set('text','Failed to communicate with server'); }");
93 echo
$form->writeScript();
96 <h3>Image Details</h3>
101 <img src=
"<?echo $image->getThumbnail(350) ?> " alt=
"Small version of image"/><br/>
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
The ImageManager class provides basic Image manipulation functions that are useful when working with ...
$method
Pull out a simple reference to the request method.