public function alertDelete() { $this->setAJAXLayout(); if (!\helpers\Msg::delete()) { $this->fw->error(404); } }