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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Backoffice Custom action Controllers (from plugins ?)

plugin plugins

Started by Guillaume Storchi 6 years ago · 2 replies · 881 views
6 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 ...

6 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.

6 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 Jerry Hunt, 4 days ago
2 80 10 hours ago
General · by pamtbaau, 15 hours ago
1 51 14 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago