Merge pull request #3140 from marijnkampf/patch-2

Update uploadfield.md
This commit is contained in:
Simon Welsh 2014-05-15 21:32:57 +10:00
commit 08ea44d458

View File

@ -341,6 +341,7 @@ gallery the below code could be used:
// In GalleryPage.php
class GalleryPage extends Page {}
class GalleryPage_Controller extends Page_Controller {
private static $allowed_actions = array('Form');
public function Form() {
$fields = new FieldList(
new TextField('Title', 'Title', null, 255),