Skip to content

Instantly share code, notes, and snippets.

@shameerc
Created January 20, 2011 18:07
Show Gist options
  • Select an option

  • Save shameerc/788287 to your computer and use it in GitHub Desktop.

Select an option

Save shameerc/788287 to your computer and use it in GitHub Desktop.
<?php
class Controller_Foo extends
{
public function action_foo()
{
$ext_response = Request::factory('http://site.com/foo/bar/bas')
->execute()
->response;
}
public function action_bar()
{
$int_response = Request::factory('foo/bar')
->execute()
->response;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment