From 0a480e1f4ab4faa511dfdfa6aea4644b8210c594 Mon Sep 17 00:00:00 2001 From: Peter Mescalchin Date: Tue, 5 Feb 2013 14:13:36 +1100 Subject: [PATCH] Fixed variable name typo in template/layout example. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is also a typo on the http://flightphp.com/learn page. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 52a80f6..f661ef7 100644 --- a/README.md +++ b/README.md @@ -443,7 +443,7 @@ It is common for websites to have a single layout template file with interchangi ```php 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: