src/Mvc/View/Controls/Form.php
public function render(Request $request, $parameters = array())
    {
        $contentPrefix = "/";
        if (! is_null($request->getContextPrefix())) {
            $contentPrefix = $request->getContextPrefix();
        }
        
        $formAction = sprintf("%s%s/%s", $contentPrefix, isset($parameters['controller']) ?
        		$parameters['controller'] : lcfirst($request->getController()), isset($parameters['action']) ?
        			$parameters['action'] : lcfirst($request->getAction()));
        
        if (isset($parameters['formAction'])) {
            $formAction = $parameters['formAction'];
        }
        
        $rendered = sprintf('<form action="%s" method="%s"%s>', $formAction, isset($parameters['formMethod']) ?
        		$parameters['formMethod'] : "POST", isset($parameters['formClass']) ?
        		(sprintf(' class="%s"', $parameters['formClass'])) : "");
        
        $rendered = $this->renderFields($rendered, $parameters['fields']);
        
        $rendered = $this->renderButtons($rendered, $parameters['buttons']);
        
        $rendered .= sprintf("</form>");
        
        return $rendered;
    }
public function render(Request $request, $parameters = array())
    {
        $contentPrefix = "/";
        if (! is_null($request->getContextPrefix())) {
            $contentPrefix = $request->getContextPrefix();
        }
        
        $formAction = sprintf("%s%s/%s", $contentPrefix, isset($parameters['controller']) ?
        		$parameters['controller'] : lcfirst($request->getController()), isset($parameters['action']) ?
        			$parameters['action'] : lcfirst($request->getAction()));
        
        if (isset($parameters['formAction'])) {
            $formAction = $parameters['formAction'];
        }
        
        $rendered = sprintf('<form action="%s" method="%s"%s>', $formAction, isset($parameters['formMethod']) ?
        		$parameters['formMethod'] : "POST", isset($parameters['formClass']) ?
        		(sprintf(' class="%s"', $parameters['formClass'])) : "");
        
        $rendered = $this->renderFields($rendered, $parameters['fields']);
        
        $rendered = $this->renderButtons($rendered, $parameters['buttons']);
        
        $rendered .= sprintf("</form>");
        
        return $rendered;
    }
(non-PHPdoc)

@see \Nkey\Caribu\Mvc\View\Control::render()