@@ -3,7 +3,7 @@ Creating Menus: The Basics
33
44Let's face it, creating menus sucks. Menus - a common aspect of any
55site - can range from being simple and mundane to giant monsters that
6- become a headache to code and maintain.
6+ becomes a headache to code and maintain.
77
88This bundle solves the issue by giving you a small, yet powerful and flexible
99framework for handling your menus. While most of the examples shown here
@@ -15,7 +15,7 @@ Creating a menu
1515The menu framework centers around one main interface: ` Knp\Menu\ItemInterface ` .
1616Items are created by a factory implementing ` Knp\Menu\FactoryInterface ` .
1717It's best to think of each ` ItemInterface ` object as an ` <li> ` tag that can
18- hold children objects (` <li> ` tags that are wrapped in a ` <ul> ` tag).
18+ hold child objects (` <li> ` tags that are wrapped in a ` <ul> ` tag).
1919For example:
2020
2121``` php
@@ -55,13 +55,13 @@ The above would render the following html code:
5555> The menu framework automatically adds ` first ` and ` last ` classes to each
5656> ` <li> ` tag at each level for easy styling. Notice also that a ` current `
5757> class is added to the "current" menu item by uri and ` current_ancestor `
58- > to its ancestors (the classes are configurable) The above example assumes
58+ > to its ancestors (the classes are configurable). The above example assumes
5959> the menu is being rendered on the ` /comments ` page, making the Comments
6060> menu the "current" item.
6161
6262When the menu is rendered, it's actually spaced correctly so that it appears
6363as shown in the source html. This is to allow for easier debugging and can
64- be turned off by passing the ` true ` as the second argument to the renderer.
64+ be turned off by passing ` true ` as the second argument to the renderer.
6565
6666``` php
6767<?php
0 commit comments