Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class FooController extends AppController {
- var $components = array('Twitter');
- function bar() {
- /* authentication */
- $this->Twitter->username = 'foo';
- $this->Twitter->password = 'bar';
- $this->set('statuses',
- $this->Twitter->statusesFriendsTimeline() /* <- Camelized method name */
- );
- }
- function rab() {
- /* Without authentication */
- $this->set('statuses',
- $this->Twitter->statusesPublicTimeline()
- );
- }
- }
- ?>
Add Comment
Please, Sign In to add comment