# Mezzio Navigation

**URL:** <https://discourse.laminas.dev/t/mezzio-navigation/3373>\
**Category:** Mezzio\
**Tags:** laminas-navigation\
**Created:** [June 21, 2023, 8:35pm UTC](https://discourse.laminas.dev/t/mezzio-navigation/3373 "2023-06-21T20:35:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan81](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Stefan81](https://discourse.laminas.dev/u/Stefan81)\
**Post date:** [June 21, 2023, 8:35pm UTC](https://discourse.laminas.dev/t/mezzio-navigation/3373/1 "2023-06-21T20:35:39Z")

</div>

Hi everyone,

I’m currently working on a Mezzio app and I’m trying to figure out how to use laminas-navigation to create a navigation system. I’ve been looking at the documentation, but I’m still not sure how to do it.  
"  
For a Mezzio application, choose config/config.php.  
For a laminas-mvc application, choose either modules.config.php or application.config.php.  
"  
I’m specifically interested in creating a navigation system that uses Mezzio Pages.  
what i expected something like :

**`>** class MezzioPage extends AbstractPage **`**

Can anyone give me some advice on how to use laminas-navi to create a navigation system for a Mezzio app that uses Mezzio Pages?

Thanks!

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [June 22, 2023, 7:26am UTC](https://discourse.laminas.dev/t/mezzio-navigation/3373/2 "2023-06-22T07:26:03Z")

</div>

_A little more work is needed and unfortunately no one has implemented or contributed this yet._

For the current implementation of laminas-navigation you need:

- a new page type like `MezzioPage`
- a middleware which sets the route result object to this new page type
- and the [`ViewHelperManagerDelegatorFactory`](https://github.com/laminas/laminas-navigation/blob/c02c1db971f5db4765a01a5ddd75a458790e8893/src/View/ViewHelperManagerDelegatorFactory.php#L12-L19) of laminas-navigation must be registered for the [plugin manager of view helpers](https://github.com/laminas/laminas-view/blob/ecade111f8b4cb0376f1c76e0b79bad201273e7c/src/HelperPluginManager.php#L26-L37)

(I think, we should remove Mezzio from the installation page of laminas-navigation.)

---

<div class="post-metadata">

**Author:** ![Stefan81](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Stefan81](https://discourse.laminas.dev/u/Stefan81)\
**Post date:** [July 5, 2023, 8:45pm UTC](https://discourse.laminas.dev/t/mezzio-navigation/3373/3 "2023-07-05T20:45:28Z")

</div>

what about this :

> **[GitHub - froschdesign/zend-expressive-navigation: Page, middleware and...](https://github.com/froschdesign/zend-expressive-navigation)**
>
> Page, middleware and factories for navigations in a zend-expressive application - GitHub - froschdesign/zend-expressive-navigation: Page, middleware and factories for navigations in a zend-expressi...

would you advise to use it? and why is that not part of framwork?

---

<div class="post-metadata">

**Author:** ![Stefan81](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Stefan81](https://discourse.laminas.dev/u/Stefan81)\
**Post date:** [July 12, 2023, 9:20pm UTC](https://discourse.laminas.dev/t/mezzio-navigation/3373/4 "2023-07-12T21:20:23Z")

</div>

@froschdesign could you answer me please about zend expressive-navigation package…why is that not part of our framwork?

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [July 12, 2023, 9:37pm UTC](https://discourse.laminas.dev/t/mezzio-navigation/3373/5 "2023-07-12T21:37:05Z")

</div>

I already answered the question; see above:

> [@froschdesign](#):
>
> …unfortunately no one has implemented or contributed this yet.

Unfortunately, I also have little time and no one else has shown interest in doing the adaptations for Mezzio.

---

<div class="post-metadata">

**Author:** ![Tyrsson](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/tyrsson/32/1664_2.png) [@Tyrsson](https://discourse.laminas.dev/u/Tyrsson)\
**Post date:** [July 25, 2023, 5:55pm UTC](https://discourse.laminas.dev/t/mezzio-navigation/3373/6 "2023-07-25T17:55:39Z")

</div>

I’m currently working on moving to Mezzio so I’ll be working on it. If I finish it before someone else submits it then I will let ya know.

---

<div class="post-metadata">

**Author:** ![mimmi20](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/mimmi20/32/1338_2.png) [@mimmi20](https://discourse.laminas.dev/u/mimmi20)\
**Post date:** [January 14, 2024, 2:38pm UTC](https://discourse.laminas.dev/t/mezzio-navigation/3373/7 "2024-01-14T14:38:31Z")

</div>

You may try this Package: [mezzio-navigation](https://github.com/mimmi20/mezzio-navigation).

But if you want to use Authorization too, you have to switch to [mezzio-generic-authorization](https://github.com/mimmi20/mezzio-generic-authorization).

If you want to render the Navigation with Laminas-View, you also need the Package [mezzio-navigation-laminasviewrenderer](https://github.com/mimmi20/mezzio-navigation-laminasviewrenderer).
