How is database-input handle? (newbie question)
This is probably a stupid question, but since I couldn't figure it out myself I need to ask it.
I've installed the vanilla forum ver. 2 on my website and i wanted to customize it a bit; I wanted to add another textbox-area to the "create a new discussion form" and have the input saved in my database table "extra-stuff".
I've figured out where to add the html code to have the extra textbox-area appear, but i can't figure out how the submit of the form is handled.
I only have experience with forms where the submit would trigger the action i.e. action='save_my_input.php'. I would then go to save_my_input.php and edit it to also save my extra textbox-area.
Vanilla forums doesn't use this method, so my question is:
Where is the code, that inserts a new discussion into the database / What file do i need to go edit to save my extra textbox-area?
Answers
Vanilla uses the MVC (Model - View - Controller) framework, and in this framework, the post event would be handled by a controller. In all likelihood the same controller that was used to request the form view to begin with.
I recommend reading up a little bit on MVC, it'll help with your understanding of Vanilla.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained