M
M
Maxim2015-10-05 16:37:45
JavaScript
Maxim, 2015-10-05 16:37:45

Why doesn't ajax requests show up in symfony 2 profiler?

What is needed for this? Somewhere, something needs to be configured?
Wrote a simple script

$request = $this->get('request');
return new Response(var_dump($request->isXmlHttpRequest()));


$("#ajax").click(function(){
  $.ajax({
     	type: "GET",
     	url: "/admin",
     	success: function(msg){
      	 alert( "Data Saved: " + msg );
     	},
     	error: function(msg){
     		console.log(msg);
     	},
 	});
});

outputs true

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shagguboy, 2015-10-05
@maxpointn2point

symfony.com/blog/new-in-symfony-2-6-ajax-requests-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question