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()) : '');
    }
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()) : '');
    }
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 ( ) ) : '' ) ; }
Returns an open form tag with the selected html options;
@param string [string] $htmlOptions
@return string
Returns an open form tag with the selected html options ;