protected function setupControllerMenus()
    {
        $this->config = Config::getInstance();

        $paths = Config::getInstance()->get('Octo.paths.namespaces');

        foreach ($paths as $namespace => $path) {
            $thisPath = $path . 'Admin/Controller/*.php';
            $files = glob($thisPath);

            foreach ($files as $file) {
                $this->getControllerMenuItems($file, $namespace);
            }
        }
    }
protected function setupControllerMenus()
    {
        $this->config = Config::getInstance();

        $paths = Config::getInstance()->get('Octo.paths.namespaces');

        foreach ($paths as $namespace => $path) {
            $thisPath = $path . 'Admin/Controller/*.php';
            $files = glob($thisPath);

            foreach ($files as $file) {
                $this->getControllerMenuItems($file, $namespace);
            }
        }
    }
protected function setupControllerMenus ( ) { $ this -> config = Config :: getInstance ( ) ; $ paths = Config :: getInstance ( ) -> get ( 'Octo.paths.namespaces' ) ; foreach ( $ paths as $ namespace => $ path ) { $ thisPath = $ path . 'Admin/Controller/*.php' ; $ files = glob ( $ thisPath ) ; foreach ( $ files as $ file ) { $ this -> getControllerMenuItems ( $ file , $ namespace ) ; } } }
Setup the menus for each controller
Setup the menus for each controller