src/MVC/View.php
function buildForm($tpl_name, array $form_tags = array(), array $tpl_data = array())
    {
        $content = $this->delegate->getClosureContainer()->run('buildForm', array($this));
        $content .= $this->obRenderTpl($tpl_name, $tpl_data);

        $form_tags += array('action' => '', 'method' => 'post');
        $form_tags['@content'] = $content;

        return $this->wrapTag('form', $form_tags);
    }
function buildForm($tpl_name, array $form_tags = array(), array $tpl_data = array())
    {
        $content = $this->delegate->getClosureContainer()->run('buildForm', array($this));
        $content .= $this->obRenderTpl($tpl_name, $tpl_data);

        $form_tags += array('action' => '', 'method' => 'post');
        $form_tags['@content'] = $content;

        return $this->wrapTag('form', $form_tags);
    }
生成表单
<pre>
使用$this->on('buildForm', ....), 来干预所有生成的表单内容
</pre>

@param string $tpl_name 包含表单的模板文件路径
@param array $form_tags 生成表单tag的参数
@param array $tpl_data 模板数据
@return string