diff --git a/core/config/config.php b/core/config/config.php index afa84a82..5ab35a0e 100644 --- a/core/config/config.php +++ b/core/config/config.php @@ -122,4 +122,6 @@ $config['modules'] = array MODPATH . 'unit_test', MODPATH . 'mptt', MODPATH . 'forge', + + THEMEPATH . 'default', ); diff --git a/core/config/routes.php b/core/config/routes.php new file mode 100644 index 00000000..5314d913 --- /dev/null +++ b/core/config/routes.php @@ -0,0 +1,22 @@ +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; + + } +} diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php index 51bc72e8..adea7543 100644 --- a/core/views/welcome.html.php +++ b/core/views/welcome.html.php @@ -88,6 +88,7 @@
+ = html::anchor("album/1", "Browse Gallery") ?>