bmcclure / CakePHP-Menu-Plugin

A CakePHP 2.0 plugin designed to help build menus in the controller and display them in the view
MIT License
17 stars 9 forks source link

Support 'exclude' option for auto-generated menus #3

Open bmcclure opened 12 years ago

bmcclure commented 12 years ago

Just like the 'alias' option, when auto-generating a menu MenuBuilderComponent should check for an 'exclude' option and exclude any actions found in that array from being added to the menu.

It should work like Mark Story's AclMenuComponent:

var $menuOptions = array(
    'exclude' => array('secretStuff');
);
//Or
var $menuOptions = array(
    'exclude' => array('*');
);