I want to use upload multiple with xupload extension,
but didn't work my code?
这个配置
config.php
'aliases' => array( //如果你使用 composer 你的路径应该是 'xupload' => 'ext.vendor.Asgaroth.xupload', //如果你手动安装它 'xupload' => 'ext. xupload', ),and the Widget in views <?php $this->widget('xupload.XUpload', array( 'url' => Yii::app()->createUrl("site/upload"), 'model' => $model, 'attribute' => 'file', 'multiple' => true, )); ?> and controller class SiteController extends CController { public function actions() { return array( 'upload'=>array( 'class'=>'xupload.actions.XUploadAction', 'path' =>Yii::app() -> getBasePath() . "/../uploads", 'publicPath' => Yii::app() -> getBaseUrl() . "/uploads", ), ); } }
and this view my application
but don't work, please help to solve my problem,
thanks ?