Silverstripe Version:
SS V 3
Question:
I have made new Page files (extends Page and Page_controller) but they don’t get visited and used by dev/build.
Details of your query go here
My site is some years old and has a few dozen descendants of Page, absolutely normal SS stuff.
After some months of no development, I now want to make a new page, quite vanilla, nothing at all fancy. But dev/build recognises no new pages.
I even cloned a working one, named it. Nope.
Here is 100% of my CurtainTypeMainPage.php
<?php
/**
* Class CurtainTypeMain Page
*/
class CurtainTypeMainPage extends Page
{
}
/**
* Class CurtainTypeMainPage_Controller
*/
class CurtainTypeMainPage_Controller extends Page_Controller
{
public function getTitle() {
return 'curtains';
}
}
Easy as pie, eh?
Trying to provoke any response, I put a bit of random junk in the php, but dev/build did not notice. I put the same junk in an existing Php Page class in same folder, and got the expected PHP syntax error.
(Windows file extensions are “on” so I know this is not secretly a .txt file masquerading as PHP). SS behaves as if this new page file does not exist.
I have tried three differently named pages. I have tried ?flush=1.
I am befuddled, as you might expect. I expect it is a bonehead mistake. Thank you in advance.