Dynamic Routing

  • Hello,


    I have developed an extension to create Artists, which are rendered in the frontend. Now I need dynamic routes to update the artists data but I can not get any dynamic routing to work with method-annotations

    @Access(admin=true)

    @Route("/edit/{name}".

    When I navigate to /admin/edit/wasd I get 404.

    I also have added the edit route in the package definition:

    Is there any simple extension or a short code example showing the needed Code in the module definition and controller?


    Thank you very much for your help!

  • Hi @matthiasheieck , welcome.



    Hello guys, my name is Yunus and I'm a backend developer. If you have a problem just drop me a message, but unfortinately I can't understand everything as I'm using google translator and many things gets lost in translation. So there is a language barrier and I'm sorry about this. Be patient and we will find a solution for sure. Thank you in advance.

  • Hello yns,


    Thank you very much for your reply! Unfortunately nothing works unless I define an indexAction and reference

    artist:views/admin/edit.php. Here is my complete Code:

    When navigating to /admin/artist/edit, I get the content from /admin/artist/edit.php. Any other route like /admin/artist/edit/test gives me No route found for "GET /admin/artist/edit/test".


    Can you explain my error?