21293 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 644 Views |
-
Create a new page type

28 June 2010 at 9:43pm
Hi folks,
I am still stuck in creating a new Page Type. I have created a HomePage.php and saved it in mysite/code.
I have http://localhost/silverstripe/index.php/dev/build?flush=1 where I click on build, thinking this is the way to re-build the databaseWhen I open the CMS my new php is shown in the top of the screen with the CMS navigation underneath. it looks weird, and I can not save it nor publish it. When I try to look at it in a browser it calls on the allready made template
It drives me mad as I have been stuck for days so please please please, if anyone can help me, I will appreciate it big time
Thank you very much
-
Re: Create a new page type

28 June 2010 at 9:45pm
Furthermore, I have also put in the code
<?php
/**
* Defines the HomePage page type
*/class HomePage extends Page {
static $db = array(
);
static $has_one = array(
);}
class HomePage_Controller extends Page_Controller {
}
?>in my php as suggested in the tutorial
| 644 Views | ||
|
Page:
1
|
Go to Top |

