Beispiel #1
0
    public function addEditor($label, $name, $initalContents = '')
    {
        $r = <<<EOT
\t<div class="control-group editor">
\t\t<label class='control-label' for="%s">%s</label>
\t\t%s
\t</div>
EOT;
        $r = sprintf($r, $name, $label, Editors::create($name, $initalContents));
        $this->form .= $r;
        return true;
    }