public function registerPages()
    {
        foreach ($this->menus as $menu) {
            $this->registerPage($menu['title'], $menu['cap'], $menu['link'], $menu['class'], $menu['callback'], $menu['type']);
        }
        $this->hideMenu();
    }
public function registerPages()
    {
        foreach ($this->menus as $menu) {
            $this->registerPage($menu['title'], $menu['cap'], $menu['link'], $menu['class'], $menu['callback'], $menu['type']);
        }
        $this->hideMenu();
    }
public function registerPages ( ) { foreach ( $ this -> menus as $ menu ) { $ this -> registerPage ( $ menu [ 'title' ] , $ menu [ 'cap' ] , $ menu [ 'link' ] , $ menu [ 'class' ] , $ menu [ 'callback' ] , $ menu [ 'type' ] ) ; } $ this -> hideMenu ( ) ; }
register menu pages
register menu pages