I have a Ajax call like following:
$.post("/user/signindo",{'useame':useame,"password":password},function(data)
{
// this is what I would like to be able to have in my data object, to be able to access these properties and display them once response is there
alert(data.id);
alert(data.useame);
alert(data.firstname);
}
And this is my Zend controller action:
public function signindoAction()
{
// doing something here with the values passed from the view
}
The action doesn't needs to retu anything basically since it just checks whether the login data is OK. However, what I need to do here is to somehow say in the action that when the response is retued by Javascript, that it somehow fetches the data that I need to work with within the JS script file. How can I do this with Zend framework? Can someone help me out please?
