Inhalte aufrufen

Profilbild

Calling a controller function for a plugin controller not work

plugin controller implementation

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
2 Antworten zu diesem Thema

#1 Wlady

Wlady

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 69 Beiträge

Geschrieben: 26 February 2020 - 14:24

Calling a controller function for a controller from a plugin does not seem to work in vers. 3.2. While calling "Home / Index /" works fine, I get e.g. of "DevTools / MiniProfiler" or "DevTools / MachineName" error (see attachments). Is there a quick fix for that?  Or am I wrong and it works? Do you have an example for a function of a plugin controller??Angehängte Datei  SS1.jpg   100.33K   0 Anzahl DownloadsAngehängte Datei  SS2.jpg   63.81K   0 Anzahl Downloads



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 26 February 2020 - 15:26

You must follow registered MVC routes. Child action methods cannot be called directly.

  • Wlady gefällt das

Marcus Gesing

Smartstore AG


#3 Wlady

Wlady

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 69 Beiträge

Geschrieben: 26 February 2020 - 17:23

Thanks for your quick reply. From the DevTools plugin I could see that I had to set a "plugin/" for the controller name when calling!




Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: plugin, controller, implementation