New answers tagged

2

I think my other answer is also part of this one. The only specifics I'd add here is that your action is getting "double-declared," in a way. Using the action param in a request has a lot of weight in Craft's eye—but you're stacking two strategies, and the system can't match it with your intent. My recommendation is (whenever possible) to use Craft'...


1

This looks like it’d be in a closure registered on the UrlManager::EVENT_REGISTER_CP_URL_RULES event, like this: Event::on( UrlManager::class, UrlManager::EVENT_REGISTER_CP_URL_RULES, function (RegisterUrlRulesEvent $e) { $e->rules['my/route'] => 'module/controller/action'; }); The above explains it almost in context—when ...


Top 50 recent answers are included