/** * 一些特殊业务需要 ajax view * /api/reduce/ajaxresponse */ public function AjaxResponseAction() { $this->setView(\Core\View\Ajax::create()); $this->getView()->response("Successfully", ['disk' => '2000MB']); }
/** * init */ public function init() { parent::init(); $this->setView(AjaxView::create()); }