select( 'city', ['id as value', 'name as label'], ['pid' => $_REQUEST['values']['documents.province']] ) ->fetchAll(); echo json_encode( [ 'options' => [ 'documents.city' => $city ] ] );