コード例 #1
0
 public function jsonAction(FrontControllerInterface $app)
 {
     $response = $app->get('response');
     $response->setContentType('json')->setContents(array("var" => "val"));
     return $response;
 }
コード例 #2
0
 public function callrouteAction(FrontControllerInterface $app)
 {
     return $app->callRoute('/hello/your-name', array('name' => 'your-new-name'));
 }