From 6b9a0531b829598fce010b622638112c2e2d3e3b Mon Sep 17 00:00:00 2001 From: Luciano Baraglia Date: Tue, 7 May 2013 02:01:00 -0300 Subject: [PATCH] Controllers section example fix --- docs/guide/upgrade-from-v1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/upgrade-from-v1.md b/docs/guide/upgrade-from-v1.md index b9365e5..ff9e5cf 100644 --- a/docs/guide/upgrade-from-v1.md +++ b/docs/guide/upgrade-from-v1.md @@ -195,7 +195,7 @@ A new method called `populate()` is introduced to simplify the data population f to a model. For example, ~~~ -$post = new Post; +$model = new Post; if ($this->populate($_POST, $model)) {...} // which is equivalent to: if (isset($_POST['Post'])) {