getView('paymentmethod', 'html'); $model = VmModel::getModel('paymentmethod'); $msgtype = ''; $cids = vRequest::getInt($this->_cidName, vRequest::getInt('virtuemart_payment_id')); if(!is_array($cids)) $cids = array($cids); foreach($cids as $cid){ if ($model->createClone($cid)) $msg = vmText::_('COM_VIRTUEMART_PAYMENT_CLONED_SUCCESSFULLY'); else { $msg = vmText::_('COM_VIRTUEMART_PAYMENT_NOT_CLONED_SUCCESSFULLY'); $msgtype = 'error'; } } $mainframe->redirect('index.php?option=com_virtuemart&view=paymentmethod', $msg, $msgtype); } } // pure php no closing tag