You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 18, 2022. It is now read-only.
@@ -128,7 +128,7 @@ The controller entry method `handle()`:
128
128
<?php
129
129
130
130
131
-
class ExampleController extends BaseController
131
+
class ExampleController extends BaseController
132
132
{
133
133
public function handle()
134
134
{
@@ -140,14 +140,18 @@ class ExampleController extends BaseController
140
140
}
141
141
142
142
```
143
-
143
+
144
144
# Views
145
145
146
-
The default we are using the template engine [Plates](http://platesphp.com/v3/), Plates is a native PHP template system that's fast, easy to use and easy to extend.
146
+
There is no built-in template engine. If you need to use a PHP template, we recommend that you use [Plates](http://platesphp.com/v3/), Plates is a native PHP template system that's fast, easy to use and easy to extend.
147
+
148
+
```sh
149
+
$ composer require league/plates -vvv
150
+
```
147
151
148
152
You can use `view(string $template, array $data)` helper in controller `handle` method as a result.
149
153
150
-
for example:
154
+
for example:
151
155
152
156
```php
153
157
public function handle()
@@ -188,7 +192,7 @@ To create a controller test object, use,you can use the `mock_controller` func
0 commit comments