I'm kinda pulling my hair out here. I have a page type named StudentsPage.php and the following code within it:
class StudentsPage extends Page {
static $db = array(
'LeftDesc' => 'Text'
);
static $has_one = array(
);
}
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new TextField('LeftDesc'), 'Content');
return $fields;
}
class StudentsPage_Controller extends Page_Controller {
}
But no matter how much I
?flush=1
or /db/build?flush=1
, the text field will not show up in the CMS. Is there something glaringly obvious that I'm missing?