Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bug fixed in handling-http-requests/helpers.wiki #40

Merged
merged 1 commit into from

2 participants

@sibaz

The example code contained a couple of typos, one where the $_strings variable in the helper was private, so inaccessible by the parent _render function, and one in the template, where the wrong convention was used to access the link function.  

@sibaz sibaz Example code didn't work; fixed
The example code contained a couple of typos, one where the $_strings variable in the helper was private, so inaccessible by the parent _render function, and one in the template, where the wrong convention was used to access the link function.  
bc077a6
@nateabele nateabele merged commit 621e68a into UnionOfRAD:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 3, 2012
  1. @sibaz

    Example code didn't work; fixed

    sibaz authored
    The example code contained a couple of typos, one where the $_strings variable in the helper was private, so inaccessible by the parent _render function, and one in the template, where the wrong convention was used to access the link function.  
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 en/handling-http-requests/helpers.wiki
View
4 en/handling-http-requests/helpers.wiki
@@ -44,7 +44,7 @@ namespace app\extensions\helper;
class AwesomeHtml extends \lithium\template\Helper {
- private $_strings = array(
+ protected $_strings = array(
'awesome' => '<a class="awesome" href="{:url}">{:title}</a>',
'super_cool' => '<span class="super"><a class="cool" href="{:url}">{:title}</a></span>',
);
@@ -62,7 +62,7 @@ Once this has been setup, we can use the new helper as we would any of the core
{{{<p>
You should really check out
- <?=$this->awesomeLink->create('Lithium', 'http://lithify.me', array(
+ <?=$this->awesomeHtml->link('Lithium', 'http://lithify.me', array(
'type' => 'super_cool'
)) ?>
</p>}}}
Something went wrong with that request. Please try again.