コード例 #1
0
 /**
  * Runs the action
  *
  * @param array $config
  * @return mixed The result of the action
  */
 protected function runAction($config)
 {
     $action = new UploadAction('upload', new Controller('test', Yii::$app), $config);
     return $action->run();
 }
コード例 #2
0
ファイル: BaseTest.php プロジェクト: rkit/filemanager-yii2
 /**
  * Runs the upload action
  *
  * @param array $config
  * @return mixed The result of the action
  */
 public function runUploadAction($config)
 {
     $this->createTmpFile($config['inputName']);
     $action = new UploadAction('upload', new Controller('test', Yii::$app), $config);
     return $action->run();
 }