Despite trying out various solutions from the forum posts, I didn't have any luck.
My problem is, from tutorial one, I couldn't seem to create the page type, from HomePage.php, to appear in the Page Type dropdown, after rebuilding using this url http://localhost:8888/SilverStripe/mysite/dev/build?flush=all
I am using SilverStripe 3.0.1 and I installed it on my MacBook Pro's local machine. The php file, HomePage.php, is stored in this directory -> MAMP/htdocs/SilverStripe/mysite/code
At present, there are two files in this directory, HomePage.php and Page.php
The code in HomePage.php is this
<?php
class HomePage extends Page {}
class HomePage_Controller extends Page_Controller {}
My questions:-
1. Should there be a PHP closing tag ?> in this file? e.g. <?php ...... ?>
2. Every time, I rebuilt it I get a login page which says I must be an adminstrator to continue the rebuild. That's even when I am already logged in!
3. What should the correct url be in my case for rebuilding ? I guess it's http://localhost:8888/Silverstripe/mysite/dev/build?flush=1
Is 'mysite' correct?
What have I done wrong? I apprecicate any help from you
Thanks
Will