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