public function destroy() { $this->layout->renderAjax('destroy=' . $this->params['id']); $this->layout->unsetLayout(); }