From dae36c2aa4afebb38cc3235b46c6490b2f771aa1 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 11 Nov 2008 06:18:45 +0000 Subject: Create REST_Controller abstract base class for all REST based resource controllers. Any controller that wants to act RESTful can extend this class and implement get/post/put/delete. Tweak default routes to disallow direct access to the REST controller and direct access to any REST methods. --- core/controllers/album.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/controllers/album.php') diff --git a/core/controllers/album.php b/core/controllers/album.php index c94bcbef..cafd6bde 100644 --- a/core/controllers/album.php +++ b/core/controllers/album.php @@ -18,8 +18,9 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Album_Controller extends Item_Controller { + public function get($item) { - /** @todo: these need to be pulled from the database */ + // @todo: these need to be pulled from the database $theme_name = "default"; $page_size = 9; -- cgit v1.2.3