This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

garhy.ahmed18512
garhy.ahmed18512

Hi,

I have a basic plugin to store user contacts data in db with back-end forms for create/update and list, all configured with fields.yaml . and I want to extend the create/update controller functions to send an API call to 3rd party app with posted data after models been saved in octobercms.

Not sure what is the best way to achieve that in backend forms, need your advices.

alxy
alxy

I'd rather recommend to use Model events. In your case, you could use afterCreate and afterUpdate.

However, it is also possible to override controller actions. This is also documented.

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.