Hi
I want to submit the "answer-form" via ajax. So far, so easy. There are several problems in that implementation:
-
If I want to store the answers, I have to call the persistenceManager->persistAll(), because there ist no $this->redirect (wich does the persist action itself). So the data is never stored.
-
I have to "return json_encode('success')" or something like that. ATM I only get the rendered answer-view.
Is it planed to do such an implementation of ajax handling, or do I have to patch the controller and so on by myself?
Hi
I want to submit the "answer-form" via ajax. So far, so easy. There are several problems in that implementation:
If I want to store the answers, I have to call the persistenceManager->persistAll(), because there ist no $this->redirect (wich does the persist action itself). So the data is never stored.
I have to "return json_encode('success')" or something like that. ATM I only get the rendered answer-view.
Is it planed to do such an implementation of ajax handling, or do I have to patch the controller and so on by myself?