diff --git a/09 Views.md b/08 Views.md similarity index 98% rename from 09 Views.md rename to 08 Views.md index 5a3840d..e22c571 100644 --- a/09 Views.md +++ b/08 Views.md @@ -24,7 +24,7 @@ By default Flight will look for a `views` directory for template files. You can Flight::set('flight.views.path', '/path/to/views'); -## Layouts +### Layouts It is common for websites to have a single layout template file with interchanging content. To render content to be used in a layout, you can pass in an optional parameter to the `render` method. @@ -69,7 +69,7 @@ The output would be: -## Custom Views +### Custom Views Flight allows you to swap out the default view engine simply by registering your own view class. Here's how you would use the [Smarty](http://www.smarty.net/) template engine for your views: