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?