Quick update for outdated PHP service broker docs
Reported by Matt Gardner | August 14th, 2009 @ 05:39 PM
I signed up on the docs to fix this but couldn't edit the
page.
Am really excited to explore this. :)
Resource
http://doc.appcelerator.org/services:php
Remove
/*
* @Service(request = "hello.world.request", response = "hello.world.response")
*/
function helloWorld (&$request,&$response)
{
$responseData = &$response["data"];
$requestData = $request["data"];
$responseData["message"] = $requestData["your_message"];
}
Add
/**
* This is a hello world service
*
* @Service(request=hello.world.request,response=hello.world.response,version=1.0)
*/
function helloWorld (&$request,&$response)
{
$responseData = &$response["data"];
$requestData = $request["data"];
$responseData["message"] = $requestData["your_message"];
}
Comments and changes to this ticket
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »