Skip to content

Commit

Permalink
Updated README with new templating helper syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswallsmith committed Sep 4, 2010
1 parent 92182c5 commit b4a2e47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -50,18 +50,18 @@ Using Twitter @Anywhere
A templating helper is included for using Twitter @Anywhere. To use it, first
call the `->setup()` method toward the top of your DOM:

<?php echo $view->twitter_anywhere->setup() ?>
<?php echo $view['twitter_anywhere']->setup() ?>
</head>

Once that's done, you can queue up JavaScript to be run once the library is
actually loaded:

<span id="twitter_connect"></span>
<?php $view->twitter_anywhere->queue('T("#twitter_connect").connectButton()') ?>
<?php $view['twitter_anywhere']->queue('T("#twitter_connect").connectButton()') ?>

Finally, call the `->initialize()` method toward the bottom of the DOM:

<?php $view->twitter_anywhere->initialize() ?>
<?php $view['twitter_anywhere']->initialize() ?>
</body>

### Configuring Twitter @Anywhere
Expand Down

0 comments on commit b4a2e47

Please sign in to comment.