Merge pull request #17 from HassanAlthaf/patch-2

Update 9-templating.md
This commit is contained in:
Patrick Louys 2014-12-08 12:21:28 +01:00
commit c9215d89d5

View file

@ -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)