Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Backoffice Custom action Controllers (from plugins ?)

plugin plugins

Started by Guillaume Storchi 7 years ago · 2 replies · 1114 views
7 years ago

hello;
There is no clear documentation about creating custom controllers, I mean like in Synfony on any framework. It seems to miss !

How can we add action to de backoffice by means of a plugin ? Seems to be too free (i mean there is not real recommandation for this)

How can I achieve that ? I know I can plug on OnFormAction event but it not very satisfying in terms of performance ...

7 years ago

@sherpadawan, Have you seen the documentation on Admin Event Hooks?

Plugins for Admin are no different from plugins for front-end, they only subscribe to different events.

7 years ago

My question is more on how to write CRUD actions with a custom controller (which which ould inherit from a Grav CMS HTTP Controller).
It seems there is no recommandation for such a very common a baisc need.
Am I wrong ?
Listening event for action controller is not always a good practice, I just need to call a controller for a given url, and process the data...

The only thing I found is there
https://learn.getgrav.org/16/forms/forms/reference-form-actions

Any clue ?

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 4 days ago
2 86 14 hours ago
General · by Old Man Umby, 2 days ago
1 58 2 days ago
General · by Sebastian, 4 days ago
1 79 4 days ago
General · by Andy Miller, 2 weeks ago
0 215 2 weeks ago
General · by ready-4-IT, 6 months ago
1 715 3 weeks ago