Commit 462f2033 by Qiang Xue

Merge pull request #156 from andersonamuller/patch-1

Fixes the variable name
parents f3c17594 8c18feb1
...@@ -204,7 +204,7 @@ $model = new Post; ...@@ -204,7 +204,7 @@ $model = new Post;
if ($this->populate($_POST, $model)) {...} if ($this->populate($_POST, $model)) {...}
// which is equivalent to: // which is equivalent to:
if (isset($_POST['Post'])) { if (isset($_POST['Post'])) {
$post->attributes = $_POST['Post']; $model->attributes = $_POST['Post'];
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment