public function init($config) { $this->instantiatedItems = $this->loadItems($this->items); return parent::init($config); }
/** * It will take care of upload and delete requests; * @param array $config * @return bool * @throws \Exception */ protected function init($config) { parent::init($config); if (!$this->dataUrl) { $this->dataUrl = WebApp::get()->request()->getCurrentURL(); // if dataUrl is not set then current URL will be used; } if ($this->handleRequest) { $this->_handle(); die; } return true; }