Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • wmotr 16 posts 146 karma points
    Aug 05, 2021 @ 17:57
    wmotr
    0

    Custom Backend Controller using MVC

    Hi

    I struggle to register a custom Controller , maybe some we'll find the reason why :) Here, I register the route Here, I register the custom route

    Then I have my Controller : enter image description here

    I register the dependencies :

    Register dependencies

    On load, the MapRoute is being hit, all right, So my register dependencies is working as well,

    My CustomDashboard class implementing IDashboard is working ok, since the tab appears

    enter image description here

    but I have a 404 error

    enter image description here

    With a breakpoint in my "generateLink" method within the controller, I don't reach it out. I guess I made a mistake in the MapRoute, I keep looking over and over, I can't make it work

    (the view behind is a simple p tag , but I can't even reach the Controller, I Guess the view is not the problem)

    Let me just add that the SurfaceControllers and Block Controllers That I have all works properly.

    Again, thanks a lot for helping

    Sylvain

  • wmotr 16 posts 146 karma points
    Aug 05, 2021 @ 18:09
    wmotr
    100

    I found my solution a few minutes after ....

    :D

    enter image description here

    missing a forward slash at the beginning of the View String in the TokenGenetatorDashboard ...

    Damn, it took my a few hours :D

    Thanks anyway !

    I let this here for further queries ;)

Please Sign in or register to post replies

Write your reply to:

Draft