Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Connecting the form plugin with the database plugin

form plugins

Started by DouxDoux 3 years ago · 5 replies · 753 views
3 years ago

I'm trying to find a way to connect my GRAV form to my postgresql database using the database plugin. The goal would be to save the form content to the database. I have all the prerequisites installed, but I don't really understand to go from there.

Did anyone tried it already ? Do yo have any idea which files should be modified ? I'm a a loss.

3 years ago

@douxdoux-1312, I was only showing how a plugin can intercept the 'Submit' of a form and processing the custom action.

Both the Database plugin and SQLite plugin contain part of your needs which you can combine into your own plugin.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Vladimir Novak, 2 weeks ago
3 290 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago