I need two upload file with two upload view in one page with extension XUpload in Yii, but render first upload view.
$model = new MMediaUploadForm;
$url = aUrl('/project/media/upload', array('projectId' => $this->project->id));
$this->widget('uniprogy.extensions.xupload.XUpload', array(
'url' => $url,
'model' => $model,
'attribute' => 'file',
'downloadView' => $this->render('download', array('listWorkletId' => $this->getDOMId()), true),
'uploadView' => $this->render('upload', array(), true),
'uploadTemplate' => '#template-upload',
'formView' => $this->render('form', array(
'url' => $url,
'model' => $model,
'attribute' => 'file',
'htmlOptions' => array(
'id' => get_class($model) . "-form",
'enctype' => 'multipart/form-data',
),
), true),
));
$url1 = aUrl('/project/media/upload1', array('projectId' => $this->project->id));
$this->widget('uniprogy.extensions.xupload.XUpload', array(
'url' => $url1,
'model' => $model,
'attribute' => 'file',
'downloadView' => $this->render('download', array('listWorkletId' => $this->getDOMId()), true),
'uploadView' => $this->render('upload1', array(), true),
'uploadTemplate' => '#template-upload1',
'formView' => $this->render('form1', array(
'url' => $url1,
'model' => $model,
'attribute' => 'file',
'htmlOptions' => array(
'id' => get_class($model) . "-form",
'enctype' => 'multipart/form-data',
),
), true),
));
i have two text/x-tmpl with two id but just render first upload view! help me plz thanks!