Fixed variable name typo in template/layout example.

This is also a typo on the http://flightphp.com/learn page.
pull/29/head
Peter Mescalchin 12 years ago
parent 1cdd2bfad1
commit 0a480e1f4a

@ -443,7 +443,7 @@ It is common for websites to have a single layout template file with interchangi
```php ```php
Flight::render('header', array('heading' => 'Hello'), 'header_content'); Flight::render('header', array('heading' => 'Hello'), 'header_content');
Flight::render('body', array('message' => 'World'), 'body_content'); Flight::render('body', array('body' => 'World'), 'body_content');
``` ```
Your view will then have saved variables called `header_content` and `body_content`. You can then render your layout by doing: Your view will then have saved variables called `header_content` and `body_content`. You can then render your layout by doing:

Loading…
Cancel
Save