src/Forms/Form.php
public function forTemplate()
    {
        if (!$this->canBeCached()) {
            HTTPCacheControlMiddleware::singleton()->disableCache();
        }

        $return = $this->renderWith($this->getTemplates());

        // Now that we're rendered, clear message
        $this->clearMessage();

        return $return;
    }
public function forTemplate()
    {
        if (!$this->canBeCached()) {
            HTTPCacheControlMiddleware::singleton()->disableCache();
        }

        $return = $this->renderWith($this->getTemplates());

        // Now that we're rendered, clear message
        $this->clearMessage();

        return $return;
    }
public function forTemplate ( ) { if ( ! $ this -> canBeCached ( ) ) { HTTPCacheControlMiddleware :: singleton ( ) -> disableCache ( ) ; } $ return = $ this -> renderWith ( $ this -> getTemplates ( ) ) ; // Now that we're rendered, clear message $ this -> clearMessage ( ) ; return $ return ; }
Return a rendered version of this form.

This is returned when you access a form as $FormObject rather
than <% with FormObject %>

@return DBHTMLText
Return a rendered version of this form .