php - Ajax internal server error in Symfony -


so have problem symfony 2. "internal server error". below ajax call

$.ajax({     url: resource_url + '/delete',     type: 'post',     success: function(result){         $(row).fadeout(function(){             $(this).remove();             show_msg_box('#msg-box', 'successfully deleted <strong>' + job_name + '</strong>!');             if(!has_table_row('.jwobs-table', 'tr.app-row')){                 $('tr.app-norow').fadein();             }         });     } }); 

and content of function being called in url

public function ajaxdeleteaction($job) {     return $this->forward('web.api.job:deleteaction', $job); } 

and function route above being forwarded to

public function deleteaction($job) {     $con = \propel::getconnection();      $sql = "delete tb_job id = ".$job."";     $prep = $con->prepare($sql);     $prep->execute();      $this->response->setstatuscode(http\response::http_no_content);     return $this->response; } 

but whenever run through code, im getting internal server error this:

post <my route here> 500 (internal server error)  send m.extend.ajax (anonymous function) m.event.dispatch r.handle 

im using amazon web services btw. in advance can me.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -