PHPackages                             bakeoff/panel-nav - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. bakeoff/panel-nav

ActiveCakephp-plugin[Templating &amp; Views](/categories/templating)

bakeoff/panel-nav
=================

Views and helpers to simplify building navigation in custom panel UIs

02[1 issues](https://github.com/mehov/cakephp-panel-nav/issues)PHP

Since Feb 27Pushed 2mo agoCompare

[ Source](https://github.com/mehov/cakephp-panel-nav)[ Packagist](https://packagist.org/packages/bakeoff/panel-nav)[ RSS](/packages/bakeoff-panel-nav/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Navigation Helpers for custom CakePHP 5 Panels
==============================================

[](#navigation-helpers-for-custom-cakephp-5-panels)

This plugin contains views and helpers that can simplify building UI in custom admin panels, control panels, consoles.

When you're building an admin panel in CakePHP 5, you would have a route prefix such as `/admin` and a bunch of controllers inside `APP/Controller/Admin`: say, `ArticlesController`, `CommentsController`, `TagsController` etc. In your view templates, you would have navigation menus linking to them and their actions.

This plugin lets you automate the process by automatically picking up all present controllers and their actions within that prefix, so you don't have to manually hardcode links to them.

### Usage

[](#usage)

##### Linking to actions

[](#linking-to-actions)

`ArticlesController` manages `Article` entities and has [actions](https://book.cakephp.org/5/en/controllers.html#controller-actions) such as `edit($id)`, `reviewComments($id)` etc.

You can extend your view templates for those actions with `Bakeoff/PanelNav./entity_profile`. This will render navigation to other actions available to this entity, as well as other controllers in the current prefix.

For example, `templates/Articles/edit.php`:

```
