source:
sandbox/2.4-expresso-api/prototype/library/tonic/tests/def/response.php
@
5888
Revision 5888, 304 bytes checked in by cristiano, 12 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | <?php |
2 | |
3 | /* Test resource definitions */ |
4 | |
5 | /** |
6 | * @namespace Tonic\Tests |
7 | * @uri /responsetest |
8 | */ |
9 | class TestResponse extends Resource { |
10 | |
11 | function get($request) { |
12 | |
13 | $response = new Response($request); |
14 | $response->body = 'test'; |
15 | return $response; |
16 | |
17 | } |
18 | |
19 | } |
20 |
Note: See TracBrowser
for help on using the repository browser.