Allow modules to override module front and admin controllers

This commit is contained in:
Abhishek Kumar
2023-12-12 15:58:40 +05:30
parent ce93a9826f
commit ce10952673
3 changed files with 310 additions and 204 deletions

View File

@@ -407,6 +407,9 @@ class AdminControllerCore extends Controller
$this->controller_type = 'admin';
$this->controller_name = get_class($this);
if (strpos($this->controller_name, 'ControllerOverride')) {
$this->controller_name = substr($this->controller_name, 0, -18);
}
if (strpos($this->controller_name, 'Controller')) {
$this->controller_name = substr($this->controller_name, 0, -10);
}