Browse Source

Controllers section example fix

tags/2.0.0-beta
Luciano Baraglia 12 years ago
parent
commit
6b9a0531b8
  1. 2
      docs/guide/upgrade-from-v1.md

2
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, to a model. For example,
~~~ ~~~
$post = new Post; $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'])) {

Loading…
Cancel
Save