protected function getControllerMenuItems($file, $namespace)
    {
        $controller = '\\' . $namespace . '\\Admin\\Controller\\' . str_replace('.php', '', basename($file));

        if (method_exists($controller, 'registerMenus')) {
            $controller::registerMenus($this);
        }
    }
protected function getControllerMenuItems($file, $namespace)
    {
        $controller = '\\' . $namespace . '\\Admin\\Controller\\' . str_replace('.php', '', basename($file));

        if (method_exists($controller, 'registerMenus')) {
            $controller::registerMenus($this);
        }
    }
protected function getControllerMenuItems ( $ file , $ namespace ) { $ controller = '\\' . $ namespace . '\\Admin\\Controller\\' . str_replace ( '.php' , '' , basename ( $ file ) ) ; if ( method_exists ( $ controller , 'registerMenus' ) ) { $ controller :: registerMenus ( $ this ) ; } }
Get menus for each controller

@param $file
@param $namespace
Get menus for each controller