Joywork/ajax/vue_ajax/funnel_axios_vue.php
2026-05-22 21:21:54 +03:00

21 lines
481 B
PHP

<?php
require_once($_SERVER['DOCUMENT_ROOT']."/ajax/vue_php_function.php");
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
$data = json_decode(file_get_contents("php://input"));
$function = $data->request;
session_write_close();
$funnel = new Funnel();
if(isset($data->agency_id)){
$agency_id = (int)$data->agency_id;
$funnel->set_agency_id($agency_id);
}
$responce = $funnel->$function($data);
echo json_encode($responce, JSON_UNESCAPED_UNICODE);