Skip to content
This repository
Browse code

Update helper usage to 2.x style in code examples

  • Loading branch information...
commit db8127626a912fd3a2167d766d6bd107c485af59 1 parent 631da2d
ADmad authored January 19, 2013

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  lib/Cake/View/Helper/HtmlHelper.php
8  lib/Cake/View/Helper/HtmlHelper.php
@@ -557,7 +557,7 @@ public function script($url, $options = array()) {
557 557
 	public function scriptBlock($script, $options = array()) {
558 558
 		$options += array('safe' => true, 'inline' => true);
559 559
 		if ($options['safe']) {
560  
-			$script  = "\n" . '//<![CDATA[' . "\n" . $script . "\n" . '//]]>' . "\n";
  560
+			$script = "\n" . '//<![CDATA[' . "\n" . $script . "\n" . '//]]>' . "\n";
561 561
 		}
562 562
 		if (!$options['inline'] && empty($options['block'])) {
563 563
 			$options['block'] = 'script';
@@ -616,7 +616,7 @@ public function scriptEnd() {
616 616
  * ### Usage:
617 617
  *
618 618
  * {{{
619  
- * echo $html->style(array('margin' => '10px', 'padding' => '10px'), true);
  619
+ * echo $this->Html->style(array('margin' => '10px', 'padding' => '10px'), true);
620 620
  *
621 621
  * // creates
622 622
  * 'margin:10px;padding:10px;'
@@ -745,11 +745,11 @@ protected function _prepareCrumbs($startText) {
745 745
  *
746 746
  * Create a regular image:
747 747
  *
748  
- * `echo $html->image('cake_icon.png', array('alt' => 'CakePHP'));`
  748
+ * `echo $this->Html->image('cake_icon.png', array('alt' => 'CakePHP'));`
749 749
  *
750 750
  * Create an image link:
751 751
  *
752  
- * `echo $html->image('cake_icon.png', array('alt' => 'CakePHP', 'url' => 'http://cakephp.org'));`
  752
+ * `echo $this->Html->image('cake_icon.png', array('alt' => 'CakePHP', 'url' => 'http://cakephp.org'));`
753 753
  *
754 754
  * ### Options:
755 755
  *

0 notes on commit db81276

Please sign in to comment.
Something went wrong with that request. Please try again.