title: jquery http call in yii
body: <p>I'm used in using this kind of http call in jquery it works fine when I'm not using any framework. Now I'm using yii as a framework and somehow when I try this jquery.get() I keep getting a response code of 400 Bad Request. I intentionally used the alert to test if the http response would return 200 OK but I think there's a mistake in the way I'm calling the url.</p>
  
  <p>I've checked my webservice and everything works fine on that level.</p>
  
  <p>How can I do a http call in jquery on yii framework?</p>
  
  <p>both the webservice and the file calling the webservice is located at /protected/view/registrants folder.</p>
  
  <pre><code> var url = "receipt.php";
  
      $.get(url,{product_id:product_id},function(value){
  
       alert(value);
  
      });
  </code></pre>