Big Update Added Services and Admin
This commit is contained in:
21
docs/Twig-Views.md
Normal file
21
docs/Twig-Views.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# 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);
|
||||
```
|
||||
Reference in New Issue
Block a user