Jump to content

[Closed] Admin controller not found


Chill_user

Recommended Posts

Hello to all,

I am developping module for my needs and I tried to create custom controller in /mymodule/controllers/admin/AdminSample.php

My code in AdminSample.php

<?php
class AdminSampleController extends ModuleAdminController
{
    public function initContent()
    {
        //parent::initContent();
        dump("testingworking");
    }
}

I am taking the controller path with next code:

$link = new Link();
dump($link->getAdminLink('AdminSample'));

and result of this code (link): https://mydomain.com/aminpath/index.php?controller=AdminSample&token=xxxxxxxxxxxxxxxxxxxx

I have strange error:

Controller not found or Access denied

What should I do?

Edited by Amantha Bill (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...