"<input type='text' class='form-control' name='Users[" + id + "_" + attr + "]' value=" + value + ">"
foreach($_POST['Users'] as $key=>$value){
list($id, $name) = explode("_", $key);
$user = Users::findOne($id);
$user->$name = $value;
$user->save();
}