pagekit-formmaker extension event handler

pagekit-formmaker is a good extension of pagekit cms for dealing with user feedback

https://github.com/Bixie/pagekit-formmaker

Beside good functionality, there are quite lots configurable options when playing with this extension. For eg: if you wanna add a Cc email after client submit a feedback

Well, let’s take a look at their code, in this line

It triggers an event after saving client’s submission to the database. The event name is formmaker.form.submission

Then, just need to edit index.php file (line 106) https://github.com/Bixie/pagekit-formmaker/blob/master/index.php#L106

In events section, implement the handler for formmaker.form.submission event

That’s it! Hope this help 😉

Site using pagekit cms: hoaphuonghotel.com

Leave a Reply

Your email address will not be published. Required fields are marked *