# Event beim Speichern der Einstellungen eines Plugins?

**URL:** <https://forum.shopware.com/t/event-beim-speichern-der-einstellungen-eines-plugins/9273>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [17. Oktober 2012 um 10:12 UTC](https://forum.shopware.com/t/event-beim-speichern-der-einstellungen-eines-plugins/9273 "2012-10-17T10:12:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![yogi70](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@yogi70](https://forum.shopware.com/u/yogi70)\
**Post date:** [4. November 2012 um 21:48 UTC](https://forum.shopware.com/t/event-beim-speichern-der-einstellungen-eines-plugins/9273/2 "2012-11-04T21:48:52Z")

</div>

Hallo Phillipp, ich bin zwar auch neu bei der Shopware Programmierung aber wir haben anscheinend das gleiche Problem. Ich selbst suche noch nach der Möglichkeit das Speichern an dieser Stelle abzubrechen wenn die zu implementierende Prüfung nicht OK war… Versuch doch mal folgendes: `$this-\>subscribeEvent('Enlight\_Controller\_Action\_PostDispatch', 'onPostDispatch'); ` und dann in der onPostDispatch Methode: ` public function onPostDispatch(Enlight\_Event\_EventArgs $args) { $action = $args-\>getSubject(); $request = $action-\>Request(); $view = $action-\>View(); $this-\>log($request); // check for SavePlugin if ($request-\>getModuleName() == 'backend' and $request-\>getControllerName() == 'config' and $request-\>getActionName() == 'saveForm' ) { $post = $request-\>getPost(); $post = (isset($post[0]) ? $post[0] : $post); // check if the label is myown label if ($post['label'] === $this-\>getLabel()) { // $post['elements'] contains the plugin config data // implement checks ... } } } ` vermutlich geht das gleiche auch in Enlight\_Controller\_Action\_PreDispatch

---

_[View the full topic](https://forum.shopware.com/t/event-beim-speichern-der-einstellungen-eines-plugins/9273)._
