Hey there,
I am trying to install the blog module for silverstripe - I have unzipped the blog module into the correct directory, but when I attempt to flush the db, I get a whole lot of output like this:
"Datetime", "Author" => "Text", "Tags" => "Text" ); static $casting = array( "Date" => "Date" ); static $defaults = array( "ProvideComments" => true ); static $allowed_children = "none"; /** * overload so that the default date is today. */ public function populateDefaults(){ parent::populateDefaults(); $this->Date = date("d/m/Y H:i:s",time()); } /** * Ensures the most recent article edited on the same day is shown first. */ public function setDate($val){ $datepart = date("Y-m-d",strtotime($val)); $minutepart = date("H:i:s",time()); $date = $datepart . " " . $minutepart; return $this->setField("Date",$date); } function getCMSFields() { Requirements::javascript('blog/javascript/bbcodehelp.js'); Requirements::css('blog/css/bbcodehelp.css'); $firstName = Member::CurrentMember() ? Member::currentMember()->FirstName : ''; $codeparser = new BBCodeParser(); $fields = parent::getCMSFields();
etc
From what I can tell, this is the content of the file BlogEntry.php. After this, I don't have the additional page types, so I assume this isn't working for me!
I am using php 5.2.3, silverstripe 2.2.1 on apache on windows (my dev machine).
Any help would be much appreciated.
Rane.