/** * 管理员上传 */ function actionIndex() { $name = $_REQUEST['field']; if (!$name) { exit; } $file = new FileHelper(); $file->uid = Yii::app()->user->id; $file->admin = 1; $rt = $file->upload(); if (!$rt) { return; } $new[] = $rt; $out = FileHelper::input($new, $name); echo $out; exit; }