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;
    }
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;
    }
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 ; }
It will take care of upload and delete requests;
@param array $config
@return bool
@throws \Exception
It will take care of upload and delete requests ;