Hi all, I'm still new with Silver Stripe (but loving its flexiblity soo much!).
I'm trying to build a module to intergrate with Slide Show Pro. The first draft is still in development. All I'm trying to do is supply a drop down with availible gallerys in my slide show pro page.
It's kind of there but keep getting errors when trying to do a DB build the cause seems to be in here
static $db = array (
'Gallery' => 'Enum($this->getAlbumName())'
);
I get the following
Warning: Cannot modify header information - headers already sent by /sapphire/core/Debug.php on line 151
I've been trying to resolve this on my own but frustration is building. Any pointers? I'm still very noob and don't quite have my head arround all the API
Here is the album func
public function getAlbumName() {
$result = $this->dbGet();
$tailValue = array_pop($result);
foreach($result as $value) {
$albumOptions .= $value.',';
}
$albumOptions .= $tailValue;
return $albumOptions;
}