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