From a8e4cd8357b46c067f71f50c43f127bb796f2288 Mon Sep 17 00:00:00 2001 From: "fligtar%gmail.com" Date: Wed, 16 Aug 2006 22:20:20 +0000 Subject: [PATCH] Preliminary add-on controller stuff --- .../app/controllers/addons_controller.php | 41 +++++++++++++++++-- webtools/remora/app/views/addons/index.thtml | 1 - 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/webtools/remora/app/controllers/addons_controller.php b/webtools/remora/app/controllers/addons_controller.php index 0777280fc87..d8b1b56f31d 100644 --- a/webtools/remora/app/controllers/addons_controller.php +++ b/webtools/remora/app/controllers/addons_controller.php @@ -3,13 +3,48 @@ class AddonsController extends AppController { var $name = 'Addons'; - var $scaffold; + var $components = array('Rdf', 'Versioncompare'); - function index() - { + /** + * + */ + function index() { $this->layout = 'developers'; $this->set('addons', $this->Addon->findall()); } + + /** + * Add new or new version of an add-on + * @param int $id + */ + function add($id = 0) { + + } + + /** + * Manage an add-on + * @param int $id + */ + function manage($id) { + + } + + /** + * Edit add-on + * @param int $id + */ + function edit($id) { + + } + + /** + * Edit a version + * @param int $id + */ + function editVersion($id) { + + } + } ?> diff --git a/webtools/remora/app/views/addons/index.thtml b/webtools/remora/app/views/addons/index.thtml index 4d67f3fbc86..e69de29bb2d 100644 --- a/webtools/remora/app/views/addons/index.thtml +++ b/webtools/remora/app/views/addons/index.thtml @@ -1 +0,0 @@ -