# Frontend-Controller für URL mit Parametern - Verständnisproblem

**URL:** <https://forum.shopware.com/t/frontend-controller-fuer-url-mit-parametern-verstaendnisproblem/90478>\
**Category:** Programmierung\
**Created:** [22. September 2021 um 11:09 UTC](https://forum.shopware.com/t/frontend-controller-fuer-url-mit-parametern-verstaendnisproblem/90478 "2021-09-22T11:09:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andarit](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@andarit](https://forum.shopware.com/u/andarit)\
**Post date:** [22. September 2021 um 11:09 UTC](https://forum.shopware.com/t/frontend-controller-fuer-url-mit-parametern-verstaendnisproblem/90478/1 "2021-09-22T11:09:57Z")

</div>

Hallo an alle!

Ich bin Shopware-Anfänger, habe noch einige Verständnisprobleme und hoffe, dass mir jemand bei einer einfachen Sache Erleuchtung bringen kann.

Erstes Ziel: Frontend-Controller erstellen und Parameter abfragen.

Ohne Parameter funktioniert der Controller ([http://localhost:8800/shopware5test2/frontend/test/index](http://localhost:8800/shopware5test2/frontend/test/index)):  
TestControllerSimple.php

 ![Screenshot 2021-09-22 125301](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/d/d60f44989468baac90c6e1db4d059f052da837a6.png)  
Resources/views/frontend/test/index.tpl  
 ![Screenshot 2021-09-22 125340](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/6/612f36e6f750a342755bf85fdc697dca9e4050f9.png)  
Controllers/Frontend/Test.php  
 ![Screenshot 2021-09-22 130046](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/5/50e39509d5930adefc14c7367c395c066dd1ca3a.png)

Wenn ich Parameter in der URL hinzufüge ([http://localhost:8800/shopware5test2/frontend/test/index?action=doStuff](http://localhost:8800/shopware5test2/frontend/test/index?action=doStuff)), macht er einen Fallback auf die Startseite. Ich verstehe nicht, was mir fehlt und warum. Ein Event Subcriber? Aus der Dokumentation bin nicht schlauer geworden.

Ich bitte um Hilfe. 🙂

---

<div class="post-metadata">

**Author:** ![andarit](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@andarit](https://forum.shopware.com/u/andarit)\
**Post date:** [23. September 2021 um 12:58 UTC](https://forum.shopware.com/t/frontend-controller-fuer-url-mit-parametern-verstaendnisproblem/90478/2 "2021-09-23T12:58:47Z")

</div>

So, jetzt habe ich die kleinen Fehler selbst gefunden.

Falls ein anderer Anfänger mal auf den Thread kommt:  
[http://localhost:8800/shopware5test2/frontend/test/index/?act=doStuff](http://localhost:8800/shopware5test2/frontend/test/index/?act=doStuff)

„action“ geht nicht, da es schon drei einen GET-Parameter von Haus aus gibt (module, controller, action), und auf den / vor dem ? bin ich nur durch Vertippen gekommen.
