Hi, I am looking to create a homepage with feature. The feature will consist of 2 images and a little text. This is the code that I have so far, is kinda works but is there a better way of doing this?
thanks for any help guys, Ben
<?php
class Feature extends DataObject {
static $db = array(
'Slogan' => 'Varchar'
);
static $singular_name = 'Feature';
static $plural_name = 'Features';
static $has_one = array(
'Homepage' => 'Homepage',
'FeatureImage' => 'Image',
'FeatureText' => 'Image'
);
}