Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update helper usage to 2.x style in code examples

  • Loading branch information...
commit db8127626a912fd3a2167d766d6bd107c485af59 1 parent 631da2d
@ADmad ADmad authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Cake/View/Helper/HtmlHelper.php
View
8 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" . '//<![CDATA[' . "\n" . $script . "\n" . '//]]>' . "\n";
+ $script = "\n" . '//<![CDATA[' . "\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:
*
Please sign in to comment.
Something went wrong with that request. Please try again.