Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Model->Save vs Form->Save
I'm not clear on when one would want to use one vs the other. In the quick start guide, the model is presented first, but then a form object is used to save user edits back. But in Vanilla, the Discussion function of PostController uses Model->Save.
Pros/Cons of the different approaches?
Pros/Cons of the different approaches?
0
Comments
If you just use the model to save, you have to tell it which fields you want to save and get those values from the web page somehow. Basically, the form class does all of that work for you.