I am new to silverstripe. I am trying to add new page type. I have created a page name HomePage.php and put it in tutorial/code directory.
The content of the page is as follows
<?php
class HomePage extends Page {
static $db = array(
);
static $has_one = array(
);
}
class HomePage_Controller extends Page_Controller {
}
?>
Actually getting it from the tutorial page.
When I rebuild the database it is not showing in the table list. So I am not getting the page type.
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.
In that case, there is no new tables created because there is no extra fields specified in the HomePage type.
If you don't see HomePage type in the create dropdown list, it can mean that you've chosen the wrong option at the beginning of the installation. There are 2 options. One is using tutorial and the other one is using blackcandy theme.