Silverstripe Version: 5
Question:
I try to create a page type with Page and Controller Classes, but when i select “Test Page” and hit save, it flips back to “Virtual Page”. What am i doing wrong?
<?php
namespace {
class TestPage extends Page
{
private static $db = [];
private static $has_one = [];
}
}
<?php
namespace {
class TestPageController extends PageController
{
private static $allowed_actions = [];
protected function init()
{
parent::init();
}
}
}