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/photos.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 core/controllers/photos.php (limited to 'core/controllers/photos.php') diff --git a/core/controllers/photos.php b/core/controllers/photos.php new file mode 100644 index 00000000..a5b75b79 --- /dev/null +++ b/core/controllers/photos.php @@ -0,0 +1,40 @@ +set_global('item', $item); + $template->set_global('children', $item->children()); + $template->set_global('parents', $item->parents()); + $template->set_global('theme', $theme); + $template->set_global('user', Session::instance()->get('user', null)); + $template->content = new View("photo.html"); + + print $template; + } +} -- cgit v1.2.3