PHPackages                             monsieurbiz/mbiz\_menu - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. monsieurbiz/mbiz\_menu

ActiveMagento-module[Utility &amp; Helpers](/categories/utility)

monsieurbiz/mbiz\_menu
======================

Magento module which gives a better menu block.

0.1.1(9y ago)34002GPL-3.0PHP

Since Jun 11Pushed 6y ago5 watchersCompare

[ Source](https://github.com/monsieurbiz/Mbiz_Menu)[ Packagist](https://packagist.org/packages/monsieurbiz/mbiz_menu)[ RSS](/packages/monsieurbiz-mbiz-menu/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Mbiz\_Menu
==========

[](#mbiz_menu)

`Mbiz_Menu` is a Magento 1 module which provides an optimized menu as a simple block.

Usage
-----

[](#usage)

The block `mbiz_menu/page_html_topmenu` gives 2 methods:

1. `getCategoriesTree()` which returns main categories with children. Children are available using the method `$cat->get_children()`.
2. `getCategories` which returns all the categories available in the menu.

Each category has 2 new data available:

- `contains_current_category` is set to `true` if the category has the current category in its children.
- `is_current_category` is set to `true` if the category is the actual current one.

### Example

[](#example)

No template is provided. But here is an really simple example:

```
