Commit: a2e4ab2251be6c48d6173e8eaa5aa46d5e7676d0

Author: alkemann | Date: 2009-12-30 23:29:43 +0100
updated doc of `PasteView` to pass limit as a option and not condition
diff --git a/models/PasteView.php b/models/PasteView.php index 3a56c63..c8e3f80 100644 --- a/models/PasteView.php +++ b/models/PasteView.php @@ -7,11 +7,13 @@ namespace app\models; * It also defines it. Do not call a 'find' on this model. To view the view, use * the 'design' condition in a 'find' call on the `Paste` model, ie : * {{{ - * $latest = Paste::find('all', array('conditions' => array( - * 'design' => 'latest', - 'view' => 'all', + * $latest = Paste::find('all', array( + 'conditions' => array( + * 'design' => 'latest', + 'view' => 'all' + ), * 'limit' => 10 - * ))); + * )); * }}} * * When the find call in the example above returns a NULL, that means the view does not