Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Function : show_admin_menu()

Blair2004 edited this page Nov 2, 2014 · 2 revisions

Description : Display menu registered before or after a specific items (menu, controller, installer, themes, modules, settings, system). Menus displayed are registered with add_admin_menu().

This function takes 2 parameters ( $position[before/after] , $item[menu, controller, installer, themes, modules, settings, system]). it doesn't return something, but just output menus. This function is only used for Dashboard left menu, and should not be used more than once.

Example : <?php show_admin_menu( 'before' , 'controllers' );?> <li> <a href="<?php echo $this->instance->url->site_url('admin/controllers');?>"> <i class="fa fa-bookmark"></i> <span><?php _e( 'Controller' );?></span> </a> </li> <?php show_admin_menu( 'after' , 'controllers' );?>