Skip to content

Instantly share code, notes, and snippets.

@darrylhein
Last active January 3, 2016 01:59
Show Gist options
  • Save darrylhein/8393013 to your computer and use it in GitHub Desktop.
Save darrylhein/8393013 to your computer and use it in GitHub Desktop.
Adding nav items
<?php defined('SYSPATH') or die ('No direct script access.');
return array(
'private' => array(
'items' => array(
'Client' => array(
'route' => 'domain',
'logged_in_only' => TRUE,
'order' => 105,
'sub_menu' => array(
'items' => array(
'Domain Names' => array(
// either a uri or route can be specified
'route' => 'domain',
// the class to apply to the <li> surrounding the link
'class' => 'domain',
// the order of the menu items
// these are reordered within the get() method
'order' => 75,
),
'SSL Certificates' => array(
// either a uri or route can be specified
'route' => 'certificate',
// the class to apply to the <li> surrounding the link
'class' => 'certificate',
// the order of the menu items
// these are reordered within the get() method
'order' => 76,
),
),
),
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment