Skip to content

Commit

Permalink
Minor tidup up to README
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Mar 4, 2016
1 parent 6b31dbd commit ecddeeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ $response = $phpView->render(new Response(), "/path/to/template.php", $yourData)
You can now add variables to your renderer that will be available to all templates you render.

```php
//Via the constructor
// via the constructor
$templateVariables = [
"title" => "Title"
];
$phpView = new PhpRenderer("./path/to/templates", $templateVariables);

//Or Setter
// or setter
$phpView->setAttributes($templateVariables);

//Or Individually
// or individually
$phpView->addAttribute($key, $value);
```

Expand Down

0 comments on commit ecddeeb

Please sign in to comment.