-
-
Save glektrik/8b8f455a6892f19fb5e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TeamPage extends Page { | |
private static $db = array( | |
); | |
private static $has_one = array( | |
'Photo' => 'Image' | |
); | |
public function getCMSFields() { | |
$fields = parent::getCMSFields(); | |
$fields->addFieldToTab("Root.Main", new UploadField('Photo'),'Content'); | |
return $fields; | |
} | |
} | |
class TeamPage_Controller extends Page_Controller { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment