Skip to content

Commit ecddeeb

Browse files
committed
Minor tidup up to README
1 parent 6b31dbd commit ecddeeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ $response = $phpView->render(new Response(), "/path/to/template.php", $yourData)
4545
You can now add variables to your renderer that will be available to all templates you render.
4646

4747
```php
48-
//Via the constructor
48+
// via the constructor
4949
$templateVariables = [
5050
"title" => "Title"
5151
];
5252
$phpView = new PhpRenderer("./path/to/templates", $templateVariables);
5353

54-
//Or Setter
54+
// or setter
5555
$phpView->setAttributes($templateVariables);
5656

57-
//Or Individually
57+
// or individually
5858
$phpView->addAttribute($key, $value);
5959
```
6060

0 commit comments

Comments
 (0)