Updated 09 Views (markdown)

master
shoully 10 years ago
parent 1d46855915
commit 2f88a41b48

@ -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:
</body>
</html>
## 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:
Loading…
Cancel
Save