Here is what the Developer Toolbar gives me on the 404 page:

Mode: Developer Controler
Module: Magento_Backend
Controler Class: Magento\Backend\Controller\Adminhtml\Noroute\Index
Controler Action Name: execute

Note the "Noroute" in the Class URI.

Original :

I'm creating my first Magento Module and My Index is working with a fully working filtering.

Index URL is :


I created the Edit action but the url trigger a 404 error :

Edit URL is :


Here is my route.xml:

<router id="admin">
    <route id="multiuseraccounts" frontName="multiuseraccounts">
        <module name="Ramlam_MultiUserAccounts" before="Magento_Customer"/>

Here is my module.xml

<module name="Ramlam_MultiUserAccounts" setup_version="1.0.0">
        <module name="Magento_Customer"/>

Index and Edit are in


I deactivated the secure key but it didn't solve anything.

Index action is OK, Edit action triggers an error.

I tried every url combinaison possible

Magento never trigger the Edit class either xdebug nor die() is ever triggered in Edit class.

here is how the Edit url is built :

    'permission_id' => $item['permission_id']]

Here is the acl:

        <resource id="Magento_Backend::admin">
            <resource id="Magento_Customer::customer">
                <resource id="Ramlam_MultiUserAccounts::multiuseraccounts" title="MultiUserAccounts" sortOrder="10" >
                    <resource id="Ramlam_MultiUserAccounts::multiuseraccounts_permission" title="Permission" sortOrder="40">
                        <resource id="Ramlam_MultiUserAccounts::multiuseraccounts_permission_save" title="Save" sortOrder="10" />
                        <resource id="Ramlam_MultiUserAccounts::multiuseraccounts_permission_delete" title="Delete" sortOrder="20" />

1 Answer 1



I'd structure it like this

Folder structure

Then your admin links should be like this


<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
        <add id="Xigen::top_level" module="Xigen_Customer" resource="Magento_Backend::content" sortOrder="9999" title="Xigen"/>
        <add action="customer/permission/edit" id="Xigen_Customer::permission_edit" module="Xigen_Customer" parent="Xigen::top_level" resource="Xigen_Customer::permission_edit" sortOrder="9999" title="permission edit"/>
        <add action="customer/permission/index" id="Xigen_Customer::permission_index" module="Xigen_Customer" parent="Xigen::top_level" resource="Xigen_Customer::permission_index" sortOrder="9999" title="permission index"/>

Other than that there is a backend helper for URLs


Second Update

Edit controller looks like this



namespace Xigen\Customer\Controller\Adminhtml\Permission;

class Edit extends \Magento\Backend\App\Action

    protected $resultPageFactory;

     * Constructor
     * @param \Magento\Backend\App\Action\Context  $context
     * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
    public function __construct(
        \Magento\Backend\App\Action\Context $context,
        \Magento\Framework\View\Result\PageFactory $resultPageFactory
    ) {
        $this->resultPageFactory = $resultPageFactory;

     * Execute view action
     * @return \Magento\Framework\Controller\ResultInterface
    public function execute()
        echo 'edit';
        return $this->resultPageFactory->create();

Other than that mot sure what to suggest. Pretty much built a working example here.

  • Why Index and not my Permission menu ? i will have to add more section like Permission, I can't put all in an Index folder. Thanks for the helper ! I will use that :)
    – iizno
    Jun 7, 2019 at 13:26
  • Fair point. Updated. Jun 7, 2019 at 13:40
  • My folder structure is like yours, so it should works, I don't understand
    – iizno
    Jun 7, 2019 at 13:50
  • One more edit. Best of luck. Jun 7, 2019 at 14:15
  • Edit Class is not even triggered in my case. At some point, I saw a: route='noroute' in xdebug
    – iizno
    Jun 7, 2019 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.