From b2772f5a050351129a64b966b127e39cf76c80b5 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Wed, 19 Nov 2008 00:12:25 +0000 Subject: * Renamed the album, item and photo controllers to albums, items and photos in order to follow the convention that controllers that refer to a collection of resources have plural names. * Added a bug workaround to routes.php --- core/controllers/albums.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 core/controllers/albums.php (limited to 'core/controllers/albums.php') diff --git a/core/controllers/albums.php b/core/controllers/albums.php new file mode 100644 index 00000000..ead738d9 --- /dev/null +++ b/core/controllers/albums.php @@ -0,0 +1,45 @@ +input->get("page", "1"); + $theme = new Theme($theme_name, $template); + + $template->set_global('page_size', $page_size); + $template->set_global('item', $item); + $template->set_global('children', $item->children($page_size, ($page-1) * $page_size)); + $template->set_global('parents', $item->parents()); + $template->set_global('theme', $theme); + $template->set_global('user', Session::instance()->get('user', null)); + $template->content = new View("album.html"); + + print $template; + } +} -- cgit v1.2.3