public function deletecompaniesAction() { $r = $this->getRequest(); $sDB = new Companies(); $ar = $sDB->deleteRowForGrid($r->id, $this->safinstancesId); foreach ($ar as $k => $v) { $this->view->{$k} = $v; } }