Hi,
I am following the tutorial on creating a new page type. I did the steps described in the tutorial:
I created a new file HomePage.php in ROOT/mysite/code and copied this code into it:
<?php
class HomePage extends Page {
}
class HomePage_Controller extends Page_Controller {
}
?>
Then I rebuilt the database by using http://myweb.com/dev/build (all the links are just to illustrate the paths, they are not real)
When I access the site, it works fine, however, when I go to the admin area, the administration does not load. It seems that the page is frozen - I am on the homepage, then I add "/admin" (or "/admin/pages") to go to the administration, the url is changed to the "/admin/pages", but I still see the homepage and nothing happens and after that I can't access any link on the web (seems to be frozen). And after a while I get an error from the browser - something like the page has broken down...
There are no errors displayed on the site or in the log...
When I delete that HomePage.php file from the server,rebuild the DB via http://myweb.com/dev/build, It works fine again, but naturally without a new page type.
I am new to Silverstripe, so I have no idea how to sort it out, I haven't found anything on the internet on this issue.
Could you please help?
Thanks
Anna