public function backups()
    {
        //Only admins can access this controller
        if (!$this->Auth->isGroup('admin')) {
            return;
        }

        $links[] = [__d('me_cms', 'List backups'), [
            'controller' => 'Backups',
            'action' => 'index',
            'plugin' => 'MeCms',
            'prefix' => ADMIN_PREFIX,
        ]];
        $links[] = [__d('me_cms', 'Add backup'), [
            'controller' => 'Backups',
            'action' => 'add',
            'plugin' => 'MeCms',
            'prefix' => ADMIN_PREFIX,
        ]];

        return [$links, __d('me_cms', 'Backups'), ['icon' => 'database']];
    }
public function backups()
    {
        //Only admins can access this controller
        if (!$this->Auth->isGroup('admin')) {
            return;
        }

        $links[] = [__d('me_cms', 'List backups'), [
            'controller' => 'Backups',
            'action' => 'index',
            'plugin' => 'MeCms',
            'prefix' => ADMIN_PREFIX,
        ]];
        $links[] = [__d('me_cms', 'Add backup'), [
            'controller' => 'Backups',
            'action' => 'add',
            'plugin' => 'MeCms',
            'prefix' => ADMIN_PREFIX,
        ]];

        return [$links, __d('me_cms', 'Backups'), ['icon' => 'database']];
    }
public function backups ( ) { //Only admins can access this controller if ( ! $ this -> Auth -> isGroup ( 'admin' ) ) { return ; } $ links [ ] = [ __d ( 'me_cms' , 'List backups' ) , [ 'controller' => 'Backups' , 'action' => 'index' , 'plugin' => 'MeCms' , 'prefix' => ADMIN_PREFIX , ] ] ; $ links [ ] = [ __d ( 'me_cms' , 'Add backup' ) , [ 'controller' => 'Backups' , 'action' => 'add' , 'plugin' => 'MeCms' , 'prefix' => ADMIN_PREFIX , ] ] ; return [ $ links , __d ( 'me_cms' , 'Backups' ) , [ 'icon' => 'database' ] ] ; }
Internal function to generate the menu for "backups" actions
@return mixed Array with links, title and title options
Internal function to generate the menu for backups actions