HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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');
    }
}