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



    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 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?