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/SBogers10/tops.komma.pro/wwwroot/app/controllers/c_home.class.php
<?php
/**
 * c_home.class.php
 * Created by Komma Mediadesign.
 * Author: mike
 * Date: 11/02/14
 */

class Home extends Controller
{
    public function __construct()
    {
        parent::__construct();
    }

    /*
     * Index of the home page
     */
    public function index()
    {
        // Title
        $this->View->setData('page_title', SITE_NAME);

        // Javascript
        $js = '<script type="text/javascript" src="/public/js/tops_slider_home.js"></script>';
        $js .= '<script type="text/javascript" src="/public/js/tops_home.js"></script>';
        $this->View->setData('js_output', $js);

        // Reset submenu tracker
        $_SESSION['submenu_last'] = '';

        // Load template view
        switch (URL_LANG){
            case "nl":
                $this->View->render('v_home');
                break;
            case "de":
                $this->View->render('v_home_de');
                break;
            case "en":
                $this->View->render('v_home_en');
                break;

        }
    }
}