1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
class MyAdmin extends LeftAndMain {

    static $url_segment = 'myadmin';

    static $url_rule = '$Action/$ID';

    static $menu_title = 'My Admin';

    static $menu_priority = 60;


    public function init() {

        parent::init();
    }


    public function getEditForm($id = null) {
        return new Form($this, "EditForm",
            new FieldSet(
                new ReadonlyField('id #',$id)
            ),
            new FieldSet(
                new FormAction('go')
            )
        );
    }
}