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 'alias' option for auto-generated menus #2

Open bmcclure opened 12 years ago

bmcclure commented 12 years ago

When generating menus with MenuBuilderComponent, it should check for an option 'alias' containing a keyed array. The keys should be an action (method) name, and the value should be the alias that should be displayed instead.

This should essentially be just like Mark Story's AclMenuComponent:

var $options = array(
    'alias' => array(
        'admin_index' => 'View all Posts',
    ),
);