Example #1
0
 public function foo()
 {
     $internal = new Sabel_Request_Internal();
     $internal->values(array("pv" => "foo"));
     $internal->method(Sabel_Request::POST);
     $internal->request("main/bar", new AppBusConfig());
     $response = $internal->getResponse();
     $this->bar = $response->getResponse("bar");
 }
Example #2
0
/**
 * Internal request.
 */
function __include($uri, $values = array(), $method = Sabel_Request::GET, $withLayout = false)
{
    $requester = new Sabel_Request_Internal($method);
    $requester->values($values)->withLayout($withLayout);
    return $requester->request($uri)->getResult();
}