# \[steh auf dem schlauch\] frontend controller

**URL:** <https://forum.shopware.com/t/steh-auf-dem-schlauch-frontend-controller/14982>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [13. August 2013 um 16:29 UTC](https://forum.shopware.com/t/steh-auf-dem-schlauch-frontend-controller/14982 "2013-08-13T16:29:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)\
**Post date:** [13. August 2013 um 16:29 UTC](https://forum.shopware.com/t/steh-auf-dem-schlauch-frontend-controller/14982/1 "2013-08-13T16:29:04Z")

</div>

man, tausend mal gemacht jetzt will’s nicht ☹ will eine contoller erstellen wie folgt: ` class Shopware\_Plugins\_Frontend\_Demo\_Bootstrap extends Shopware\_Components\_Plugin\_Bootstrap{ public function install() { $event = $this-\>createEvent( 'Enlight\_Controller\_Dispatcher\_ControllerPath\_Frontend\_Demo', 'onGetControllerPathFrontend' ); return true; } ... public function onGetControllerPathFrontend(Enlight\_Event\_EventArgs $args) { die('xxx'); return $this-\>Path().'/Controllers/Frontend/Demo.php'; } ... } ` aufruf: [domain.de/Demo](http://domain.de/Demo) reaktion: null was ist verkehrt? // edit naja, mein fehler statt createEvent muss es subscribeEvent sein ` $event = $this-\>subscribeEvent( 'Enlight\_Controller\_Dispatcher\_ControllerPath\_Frontend\_Demo', 'onGetControllerPathFrontend' ); ` \*closed\*
