Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tina4:basic-routing [2021/10/26 11:03]
clayton made table per Andre and cleaned code blocks
tina4:basic-routing [2022/07/18 19:19] (current)
nealryan
Line 56: Line 56:
  
 \Tina4\Post::add ("/test/post", function(\Tina4\Response $response, \Tina4\Request $request) { \Tina4\Post::add ("/test/post", function(\Tina4\Response $response, \Tina4\Request $request) {
-    return $response ["Hello, [$request->param["someInput"]}!", HTTP_OK, TEXT_HTML);+    return $response (["Hello, {$request->params['someInput']}!"], HTTP_OK, TEXT_HTML);
 }); });
 </code> </code>
Powered by ComboStrap