Esempio n. 1
0
function updateSubCity()
{
    $sub_city = new SubCity();
    $get_edited = array();
    foreach ($_REQUEST as $k => $v) {
        $get_edited[str_replace("edit_", "", $k)] = $v;
    }
    $sub_city->setValues($get_edited);
    if ($sub_city->updateSubCity()) {
        Common::jsonSuccess("Sub City Update Successfully!");
    } else {
        Common::jsonError("Error");
    }
}