@@ -82,12 +82,12 @@ $service = $app[\Hawkbit\Presentation\PresentationService::class];
8282
8383### Presentation in a Hawkbit controller
8484
85- Access Presentation service in controller. Hawbit is inject classes to controllers by default.
85+ Access a presentation service in controller. Hawkbit inject classes to controllers by default.
8686
8787``` php
8888<?php
8989
90- use \ Hawkbit\Presentation\PresentationService;
90+ use Hawkbit\Presentation\PresentationService;
9191use Psr\Http\Message\ServerRequestInterface;
9292use Psr\Http\Message\ResponseInterface;
9393
@@ -100,11 +100,11 @@ class MyController
100100
101101 /**
102102 * TestInjectableController constructor.
103- * @param PresentationService $presentation
103+ * @param PresentationService $presentationService
104104 */
105- public function __construct(PresentationService $presentation )
105+ public function __construct(PresentationService $presentationService )
106106 {
107- $this->presentationService = $presentation ;
107+ $this->presentationService = $presentationService ;
108108 }
109109
110110 public function getIndex(ServerRequestInterface $request, ResponseInterface $response, array $args = [])
@@ -117,8 +117,8 @@ class MyController
117117
118118### Access and extend engine
119119
120- In most cases you would like to extend or access plates. We recommend to extend plates
121- in a central point of your application like bootstrap or even better in your project service provider.
120+ In some cases you would like to extend or access plates. We recommend to extend plates
121+ at a central point of your application like bootstrap or even better in your project service provider.
122122
123123``` php
124124<?php
@@ -135,6 +135,9 @@ $service->getEngine()
135135
136136```
137137
138+ You are now able to [ render a different view] ( http://platesphp.com/engine/folders/ ) e.g. ` $presentationService->render('acme::index') `
139+ and use a [ view helper function] ( http://platesphp.com/engine/functions/ ) within an view (template).
140+
138141### Plates
139142
140143Please refer to [ plates documentation] ( http://platesphp.com ) for more details.
0 commit comments