Skip to content

Commit 72de399

Browse files
committed
Update
2 parents 413a9b5 + f5134be commit 72de399

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22

33
This is a renderer for rendering PHP view scripts into a PSR-7 Response object. It works well with Slim Framework 3.
44

5+
<<<<<<< HEAD
56
## Templates
67
You may use `$this` inside your php templates. `$this` will be the actual PhpRenderer object will allow you to render sub-templates
8+
=======
9+
## Installation
10+
11+
Install with [Composer](http://getcomposer.org):
12+
13+
composer require slim/php-view
14+
>>>>>>> f5134be6ea4dac95e14439ce203927d57760ccf4
715
816
## Usage With Slim 3
917

@@ -35,4 +43,4 @@ $response = $phpView->render(new Response(), "/path/to/template.php", $yourData)
3543
## Exceptions
3644
`\RuntimeException` - if template does not exist
3745

38-
`\InvalidArgumentException` - if $data contains 'template'
46+
`\InvalidArgumentException` - if $data contains 'template'

0 commit comments

Comments
 (0)