CropperController.php 589 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace common\widgets\cropper;
  3. use Yii;
  4. use yii\web\Controller;
  5. /**
  6. * Class CropperController
  7. * @package common\widgets\cropper
  8. * @author jianyan74 <751393839@qq.com>
  9. */
  10. class CropperController extends Controller
  11. {
  12. /**
  13. * @return string
  14. */
  15. public function actionCrop()
  16. {
  17. return $this->renderAjax('@common/widgets/cropper/views/crop', [
  18. 'boxId' => Yii::$app->request->get('boxId'),
  19. 'multiple' => Yii::$app->request->get('multiple'),
  20. 'aspectRatio' => Yii::$app->request->get('aspectRatio'),
  21. ]);
  22. }
  23. }
粤ICP备19079148号