Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Creating a new page type


Go to End


2 Posts   1167 Views

Avatar
DaveM

Community Member, 1 Post

21 January 2014 at 11:47am

Made a HomePage.php with this code in it

<?php
class HomePage extends Page {
}
class HomePage_Controller extends Page_Controller {
}

even copied page.php and changed the relevant bits and used http://localhost/silverStripe/dev/build to update the database but it timed out and threw up an error

Avatar
camfindlay

Forum Moderator, 267 Posts

21 January 2014 at 5:38pm

Looking at your attached file you have your controller set as Page_Controller not as you have written in your question.

Are you using the file you attached or what you have written?

Can you provide more information about your local development setup and which version of SilverStripe you are using please.