[FLOW3-general] Ajaxable Actions / JSON as content-type
David Schoen
david-schoen at gmx.de
Sun Sep 18 15:37:59 CEST 2011
Hello List,
can anyone tell me how to make an action ajaxable? I would like to call
an action with an JSON-request and would like to get the answer in JSON
so I would have to change the content-type.
Here is what I imagine:
/**
* Returns some json-object
* @someAnnotationToSetTheReturnTypeToJSON
* @return void
*/
public function jsonAction() {
...
return <someJsonObject>;
}
I can't find anything about that in the documentation or the
blog-example. If you have any clue, tip or link, please answer :)
Thanks in advance,
David
More information about the FLOW3-general
mailing list