public function openForm($htmlOptions)
    {
        $r = '<form ';
        foreach ($htmlOptions as $k => $v)
            $r .= "$k = '$v' ";

        return $r . '>' . ((isset($htmlOptions['method']) && 'post' == strtolower($htmlOptions['method'])) ? $this->hiddenInput(WebApp::get()->request()->getCsrfKey(), WebApp::get()->request()->getCsrfValue()) : '');
    }