I am trying to change a theme, to say any one of these http://www.theme4.com/free-silverstripe-themes.html]=http://www.theme4.com/free-silverstripe-themes.html]http://www.theme4.com/free-silverstripe-themes.html ?
I tried this and broke the site!
1) Uploaded new theme folders to /themes/
2) Changed SSViewer::set_theme('paddygreen'); in /mysite/_config.php
<?php
global $project;
$project = 'mysite';
global $database;
$database = "";
require_once("conf/ConfigureFromEnv.php");
// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.com/themes/
SSViewer::set_theme('paddygreen');
?>
Got error message: Fatal error: SS_ENVIRONMENT_TYPE must be defined in your _ss_environment.php. See http://doc.silverstripe.com/doku.php?id=environment-management for more infomration in /home/useraccount/public_html/cms/sapphire/conf/ConfigureFromEnv.php on line 51
3) Changed _ss_environment.php file in root to:
<?php
define('TEMP_FOLDER', '/home/useraccount/public_html/cms/tmp');
/* Database connection */
define('SS_DATABASE_SERVER', 'localhost');
define('SS_DATABASE_USERNAME', 'apcdev_silver');
define('SS_DATABASE_PASSWORD', 'mypassword');
?>
kept getting same error.
4) Removed _ss_environment.php from root and F5
root resolved to /install.php (which has of course been removed) and returned a "Problem loading page" error. Doh!
Is there an easy way to change templates?