# Dynamic Menu items

**URL:** <https://discourse.laminas.dev/t/dynamic-menu-items/488>\
**Category:** Components & MVC\
**Tags:** zend-db, zend-mvc\
**Created:** [February 20, 2018, 8:03am UTC](https://discourse.laminas.dev/t/dynamic-menu-items/488 "2018-02-20T08:03:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erfan](https://avatars.discourse-cdn.com/v4/letter/e/c4cdca/32.png) [@erfan](https://discourse.laminas.dev/u/erfan)\
**Post date:** [February 20, 2018, 8:03am UTC](https://discourse.laminas.dev/t/dynamic-menu-items/488/1 "2018-02-20T08:03:44Z")

</div>

Hi everyone, I am seeking to find out how it is possible to retrieve my menu items from `menu` table from my database and pass them to the `Application\view\layout\layout.phtml` file to show them. the point is in the `/` route I can only pass data to `index.phtml` via `indexController`.  
thanks anyone for helping me out in advance.

---

<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:** [February 20, 2018, 4:15pm UTC](https://discourse.laminas.dev/t/dynamic-menu-items/488/2 "2018-02-20T16:15:07Z")

</div>

This is a duplicate of [Adding navigation container and pages dynamically](https://discourse.zendframework.com/t/adding-navigation-container-and-pages-dynamically/398) – your own posting!

Please stay in your original posting. Thanks!
