22 lines
440 B
Markdown
22 lines
440 B
Markdown
# Twig
|
|
|
|
## Overrides
|
|
|
|
You can override twig templates by creating the same file in the templates directory.
|
|
|
|
## Calling View
|
|
|
|
There is a $data that the system uses to store arrays for twig you can save to this array:
|
|
|
|
```
|
|
$data['newinfo'] = 'stuff';
|
|
view('templatename');
|
|
```
|
|
and that will automotically go to twig.
|
|
or you can create a new array and pass it in:
|
|
|
|
```
|
|
$anotherArr['newinfo'] = 'stuff';
|
|
view('templatename',$anotherArr);
|
|
```
|