From 6b6d7959e1a99697d701f36d06603b41c6a97d44 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 20 Aug 2009 01:20:13 -0400 Subject: [PATCH] Updating doc blocks. --- cake/libs/view/view.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index 238ac5916..6c710866f 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -323,15 +323,16 @@ class View extends Object { * and the $params array is used to send data to be used in the * Element. Elements can be cached through use of the cache key. * + * ### Special params + * + * - cache - enable caching for this element accepts boolean or strtotime compatible string. + * Can also be an array. If `cache` is an array, + * `time` is used to specify duration of cache. + * `key` can be used to create unique cache files. + * * @param string $name Name of template file in the/app/views/elements/ folder * @param array $params Array of data to be made available to the for rendered - * view (i.e. the Element) - * Special params: - * cache - enable caching for this element accepts boolean or strtotime compatible string. - * Can also be an array - * if an array,'time' is used to specify duration of cache. 'key' can be used to - * create unique cache files. - * + * view (i.e. the Element) * @return string Rendered Element * @access public */ @@ -503,7 +504,8 @@ class View extends Object { } /** - * Fire a callback on all loaded Helpers + * Fire a callback on all loaded Helpers. All helpers must implement this method, + * it is not checked before being called. You can add additional helper callbacks in AppHelper. * * @param string $callback name of callback fire. * @access protected