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