Update 9-templating.md
Change file name 'Renderable' to 'Engine' because the interface is not found by Auryn Auto Loader as it finds classes/interfaces by their file names.
This commit is contained in:
parent
60e96fb592
commit
5facb772ea
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ First let's define the interface that we want. Remember the [interface segregati
|
|||
|
||||
So what does our template engine actually need to do? For now we really just need a simple `render` method. Create a new folder in your `src/` folder with the name `Template` where you can put all the template related things.
|
||||
|
||||
In there create a new interface `Renderable.php` that looks like this:
|
||||
In there create a new interface `Engine.php` that looks like this:
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
@ -136,4 +136,4 @@ Now you can go back to your `Homepage` controller and change the render line to
|
|||
|
||||
Navigate to the hello page in your browser to make sure everything works. And as always, don't forget to commit your changes.
|
||||
|
||||
[<< previous](8-dependency-injector.md) | [next >>](10-dynamic-pages.md)
|
||||
[<< previous](8-dependency-injector.md) | [next >>](10-dynamic-pages.md)
|
||||
|
|
Loading…
Reference in a new issue