<?php
class Dashboard extends Controller {
function Dashboard()
{
parent::Controller();
$subdomain_arr = explode('.', $_SERVER['HTTP_HOST'], 2); //creates the various parts
$subdomain_name = $subdomain_arr[0]; //assigns the first part
echo $subdomain_name; // for testing only
}
}