From db8127626a912fd3a2167d766d6bd107c485af59 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sat, 19 Jan 2013 13:15:33 +0530 Subject: [PATCH] Update helper usage to 2.x style in code examples --- lib/Cake/View/Helper/HtmlHelper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Cake/View/Helper/HtmlHelper.php b/lib/Cake/View/Helper/HtmlHelper.php index 7bfe5247af2..3e63241b5cf 100644 --- a/lib/Cake/View/Helper/HtmlHelper.php +++ b/lib/Cake/View/Helper/HtmlHelper.php @@ -557,7 +557,7 @@ public function script($url, $options = array()) { public function scriptBlock($script, $options = array()) { $options += array('safe' => true, 'inline' => true); if ($options['safe']) { - $script = "\n" . '//' . "\n"; + $script = "\n" . '//' . "\n"; } if (!$options['inline'] && empty($options['block'])) { $options['block'] = 'script'; @@ -616,7 +616,7 @@ public function scriptEnd() { * ### Usage: * * {{{ - * echo $html->style(array('margin' => '10px', 'padding' => '10px'), true); + * echo $this->Html->style(array('margin' => '10px', 'padding' => '10px'), true); * * // creates * 'margin:10px;padding:10px;' @@ -745,11 +745,11 @@ protected function _prepareCrumbs($startText) { * * Create a regular image: * - * `echo $html->image('cake_icon.png', array('alt' => 'CakePHP'));` + * `echo $this->Html->image('cake_icon.png', array('alt' => 'CakePHP'));` * * Create an image link: * - * `echo $html->image('cake_icon.png', array('alt' => 'CakePHP', 'url' => 'http://cakephp.org'));` + * `echo $this->Html->image('cake_icon.png', array('alt' => 'CakePHP', 'url' => 'http://cakephp.org'));` * * ### Options: *