Jump to:

4951 Posts in 14058 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Creating a new page type

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

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

Page: 1
Go to End
Author Topic: 262 Views
  • DaveM
    Avatar
    Community Member
    1 Post

    Creating a new page type Link to this post

    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

    Attached Files
  • camfindlay
    Avatar
    Forum Moderator
    142 Posts

    Re: Creating a new page type Link to this post

    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.

    262 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.