I have created a HomePage.php file in the mysite/code directory with the following code
<?php
/**
* Defines the HomePage page type
*/
class HomePage extends Page {
static $db = array(
);
static $has_one = array(
);
}
class HomePage_Controller extends Page_Controller {
}
?>
However once I run the http://localhost/db/build?flush=1 and the database is changed I am unable to save and publish a page with the new HomePage type. When i click on the save and publish button I get "javascript Parse Error". Does anyone have any ideas?
Thanks