From fa9dda4c01a1ebb1af34e51fb36c2b3f27eb8d6e Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 3 Nov 2008 05:55:34 +0000 Subject: Create an initial attempt at the album controller, set it up with a default route and add a link to it from the welcome page. --- core/controllers/album.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 core/controllers/album.php (limited to 'core/controllers') diff --git a/core/controllers/album.php b/core/controllers/album.php new file mode 100644 index 00000000..a22e5eeb --- /dev/null +++ b/core/controllers/album.php @@ -0,0 +1,45 @@ +where("id", $id)->find(); + if (empty($item->id)) { + return Kohana::show_404(); + } + $this->template->item = $item; + + $this->template->header = new View("page_header.html"); + $this->template->header->item = $item; + + $this->template->footer = new View("page_footer.html"); + $this->template->footer->item = $item; + + $this->template->content = new View("album.html"); + $this->template->content->item = $item; + $this->template->content->maxRows = 3; + $this->template->content->maxColumns = 3; + + $this->template->sidebar = new View("page_sidebar.html"); + $this->template->sidebar->item = $item; + + } +} -- cgit v1.2.3