Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #78 from whiteoctober/doc-improvements
Browse files Browse the repository at this point in the history
Minor README wording tweaks
  • Loading branch information
Sam Partington authored May 25, 2017
2 parents b21dd13 + cdf64fe commit 04a0303
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ In your application controller methods:
public function yourAction(User $user)
{
$breadcrumbs = $this->get("white_october_breadcrumbs");

// Simple example
$breadcrumbs->addItem("Home", $this->get("router")->generate("index"));

Expand Down Expand Up @@ -99,12 +100,12 @@ public function yourAction()
// Pass "_demo" route name without any parameters
$breadcrumbs->addRouteItem("Demo", "_demo");

// Pass "_demo_hello" route name with parameters
// Pass "_demo_hello" route name with route parameters
$breadcrumbs->addRouteItem("Hello Breadcrumbs", "_demo_hello", [
'name' => 'Breadcrumbs',
]);

// Add "homepage" route link to begin of breadcrumbs
// Add "homepage" route link at the start of the breadcrumbs
$breadcrumbs->prependRouteItem("Home", "homepage");
}
```
Expand Down Expand Up @@ -209,7 +210,7 @@ for work with multiple breadcrumbs on the same page.
Overriding the template
=======================

There are two methods of doing this.
There are two methods for doing this.

1. You can override the template used by copying the
`Resources/views/breadcrumbs.html.twig` file out of the bundle and placing it
Expand Down

0 comments on commit 04a0303

Please sign in to comment.