Here is my jQuery code:
$.ajax({
url: "/beautician/accept_order",
data: dataOrder,
dataType: "text",
method: "POST",
success : function(msg){
console.log(msg);
}
});
here is the PHP code:
public function accept_order(){
echo "this is a test";
}
The output which I get in the console is: "success".
Please help me with this problem.