lithium\template\helper\Form::end PHP 메소드

end() 공개 메소드

Echoes a closing tag and unbinds the Form helper from any Record or Document object used to generate the corresponding form.
public end ( ) : string
리턴 string Returns a closing `` tag.
    public function end()
    {
        list(, $options, $template) = $this->_defaults(__FUNCTION__, null, array());
        $params = compact('options', 'template');
        $_context =& $this->_context;
        $_options =& $this->_bindingOptions;
        $filter = function ($self, $params) use(&$_context, &$_options, $template) {
            $_options = array();
            return $self->invokeMethod('_render', array('end', $params['template'], array()));
        };
        $result = $this->_filter(__METHOD__, $params, $filter);
        unset($this->_binding);
        $this->_binding = null;
        return $result;
    }

Usage Example

예제 #1
0
파일: Form.php 프로젝트: bruensicke/radium
 public function end()
 {
     unset($this->model);
     unset($this->instance);
     unset($this->schema);
     unset($this->rules);
     return parent::end();
 }