File: D:/HostingSpaces/SBogers64/klimroosbudel.nl/wwwroot/app/controllers/c_photo_gallery.class.php
<?php
/**
* c_home.class.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 11/02/14
*/
class Photo_Gallery extends Site_Controller
{
public function __construct()
{
parent::__construct();
}
/*
* Index of the home page
*/
public function index()
{
}
/*
* Show album
*/
public function album()
{
$album = $this->Model->getCurrentAlbum();
// Get list
$albumList = $this->Model->createAlbumList();
$this->View->setData('album_list', $albumList);
// Get albumId
$albumThumbs = $this->Model->createAlbumThumbs($album);
$this->View->setData('album_thumbs', $albumThumbs);
// Set header photos
$photos = 'fotogallerij/header_fotogallerij.jpg';
$this->View->setData('header_photos', $photos);
// Title
$this->View->setData('page_title', $album['title'].' | Fotogallerij | '.SITE_NAME);
// Load view
$this->View->render('v_photogallery');
}
}