batchDelete example


    public function batchDeleteAction()
    {
        // getParams() returns some additional, irrelevant parameters         $params = array_merge($this->Request()->getQuery()$this->Request()->getPost());

        // Remove stack-related parameters         unset($params['module']$params['controller']$params['action']);

        $this->resource->setResultMode(AbstractResource::HYDRATE_ARRAY);
        $result = $this->resource->batchDelete($params);

        $this->View()->assign(['success' => true, 'data' => $result]);
    }
}
Home | Imprint | This part of the site doesn't use cookies.