From 33f1714f02f2e84b8c86d26a043fecb2ce51d2fd Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 15 Jan 2013 22:42:51 +0100 Subject: [PATCH] updated tutorial --- developer_manual/tutorial.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developer_manual/tutorial.rst b/developer_manual/tutorial.rst index e1076575a..d3930f997 100644 --- a/developer_manual/tutorial.rst +++ b/developer_manual/tutorial.rst @@ -324,7 +324,7 @@ The apptemplate comes with several different controllers. A simple controller wo public function myControllerMethod(){ $value = $this->params('somesetting'); - $response = new JSONResponse($this->api->getAppName()); + $response = new JSONResponse(); $response->setParams(array('value' => $value)); return $response; } @@ -743,7 +743,7 @@ To access the Template files in your controller, use the TemplateResponse class: public function index(){ // main is the template name. Owncloud will look for template/main.php - $response = new TemplateResponse($this->api->getAppName(), 'main'); + $response = new TemplateResponse($this->api, 'main'); $params = array('templateVar' => 1); $response->setParams($params);