File: D:/HostingSpaces/SBogers64/klimroosbudel.nl/wwwroot/app/controllers/c_sitemap.class.php
<?php
/**
* c_home.class.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 11/02/14
*/
class Sitemap extends Site_Controller
{
public function __construct()
{
parent::__construct();
}
/*
* Index of the home page
*/
public function index()
{
// Title
$this->View->setData('page_title', SITE_NAME);
// Set header photos
$photos = 'home/header_home_1.jpg,home/header_home_2.jpg,home/header_home_3.jpg';
$this->View->setData('header_photos', $photos);
// Get Dynamic images
$Db = new DatabaseHandler();
$Db->setTableName(TABLE_PREFIX.'photo_sliders_images');
// Get image
$Db->clearRule();
$Db->addRule('itemId', 5);
$image = $Db->select();
$path = UPLOADS_ROOT.$image['filename'];
$this->View->setData('image_1', $path);
// Load template view
$this->View->render('v_sitemap');
}
}