I don't know if this question is duplicated or not. I'm a totally newbie in zend. I want to use an ajax event and when i call the controllername/myfunctionfromthecontroller in url , i want to return a message . I tried this :
$.ajax({
url: "/location/testare",
type: "POST",
data: post_array,
success: function (data, textStatus, jqXHR) {
//data - response from server
},
error: function (jqXHR, textStatus, errorThrown) {
}
});
and in the controller :
public function testareAction()
{
$this->view->String = 'hello world';
}
the firebu return me this : "500 Internal Server Error". Can someone help me with this ?