Parameters
This function takes a variable number of parameters.
Description
This function takes a variable number of parameters with which to make a path for AJAX calls. Making use of this method is preferable over statically writing the path in case you are building a web application or website that has the possibility of being distributed on multiple servers, some of which have clean URLs enabled and some of which have clean URLs disabled.
Example(s)
$.ajax({ type: 'POST', url: Fabriq.ajax_path('myblog', 'read', 1234), dataType: 'json', success: function(data, status) { // do something with the returned data } });
