Access Post upload data from AJAX handler
0
public function onPreview()
{
// using the formController
$model = $this->formCreateModelObject();
$this->initForm($model);
$form = $this->formGetWidget();
$sessionKey = $form->getSessionKey();
$photos = $model->photos()->withDeferred($sessionKey)->get();
// manually using the Input data
$model = new Land(Input::get('Land'));
$sessionKey = Input::get('_session_key');
$photos = $model->photos()->withDeferred($sessionKey)->get();
}
There are no comments yet
Be the first one to comment