jQuery file:
- Code: Select all
var catId=$(this).attr("rel");
var DATA = 'catId=' + catId;
$.ajax({
type: "POST",
url: "{{ path('showSubCategory', {"cat": catId }) }}",
data: DATA,
cache: false,
success: function(data){
$(".div-sous-cat[rel=" + catId + "]").html(data);
}//success
});//ajax
Of course in this line:
- Code: Select all
{{ path('showSubCategory', {"cat": catId }) }}"
My goal is to route to a different path, differents routes are given with the "catId" variable.
Any ideas? thx
