posted 19 years ago
Hi folks, I'd like to have something clarified regarding creating new posts. My line of reasoning about this is below; please correct anything if it is wrong.
The insert() method in PostAction seems to handle the creation of new posts. Now after it does some checks (see if forum is read-only etc.), it puts a bunch of values into the FreshMarker template and sends it back to the client (via the code in JForum.service()).
Now the tricky bit is that the 'action' attribute saved is 'insertSave', and the 'moduleAction' is 'post_form.htm'. This seems to me to indicate that PostAction.insertSave() is executed afterwards, which would make sense based on the code inside of it.
My question is, how does this happen? Does the response go back out to the client before insertSave() is called?
Thanks for any help!
[originally posted on jforum.net by Vlad]