SilverStripe: _config Theme Switcher
if(isset($_GET['theme'])) {
$mytheme = $_GET['theme'];
setcookie("SessionTheme", $mytheme);
} else {
if (isset($_COOKIE['SessionTheme'])) {
$mytheme = $_COOKIE['SessionTheme'];
} else {
$mytheme = 'themenamehere';
}
}
SSViewer::set_theme($mytheme);