Having bought the Silverstripe book by Ingo Schommer and Steven Broschart I'm now trying to get the sample sites to work.
I've put the example files into C:/wamp/www/4_first_steps/
I copied the 4_first_steps/mysite/_config_example.php file to the 4_first_steps/mysite/_config.php file, and changed the database credentials to suit my setup – this is what the GitHub page says to do (I think…)
I had to manually create a database using PHPMyAdmin, then imported the database.sql included in the sample.
Then I attempt to load http://localhost/4_first_steps/ and get the error:
Fatal error: 'continue' operator with non-constant operand is no longer supported in C:\wamp\www\4_first_steps\sapphire\core\ManifestBuilder.php on line 151
So I edit (line 149 of) that file to include a missing end-of-line semicolon.
Then a get a series of errors:
Strict standards: Declaration of Controller::handleRequest() should be compatible with RequestHandler::handleRequest($request) in C:\wamp\www\4_first_steps\sapphire\core\control\Controller.php on line 12
Strict standards: Declaration of CMSMain::getRecord() should be compatible with LeftAndMain::getRecord($id, $className = NULL) in C:\wamp\www\4_first_steps\cms\code\CMSMain.php on line 11
Notice: Array to string conversion in C:\wamp\www\4_first_steps\sapphire\dev\Debug.php on line 558
With some quoted code in between.
Doubtless I'm making some fundamental mistake - can anyone help with this? Note that the demo site set up as part of my first clean install works fine.