Commit 8c18feb1 by Anderson Müller

Fixes the variable name

parent 34b0da0d
...@@ -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