src/Easy/FormRenderer.php
static protected function renderPHP($formObj, $tplAttributes = Array())
    {
        $form = TemplateHelper::getZendTemplate();
        $tplFile = TemplateHelper::getTplFileWithPath($formObj->templateFile, $formObj->package);
        $form->addScriptPath(dirname($tplFile));

        /* $formOutput = $formObj->outputAttrs();
          foreach ($formOutput as $k=>$v) {
          $form->$k = $v;
          } */

        foreach ($tplAttributes as $key => $value) {
            if ($value == NULL) {
                $form->$key = '';
            } else {
                $form->$key = $value;
            }
        }

        // render the formobj attributes
        //$form->form = $formOutput;

        return $form->render($formObj->templateFile);
    }
static protected function renderPHP($formObj, $tplAttributes = Array())
    {
        $form = TemplateHelper::getZendTemplate();
        $tplFile = TemplateHelper::getTplFileWithPath($formObj->templateFile, $formObj->package);
        $form->addScriptPath(dirname($tplFile));

        /* $formOutput = $formObj->outputAttrs();
          foreach ($formOutput as $k=>$v) {
          $form->$k = $v;
          } */

        foreach ($tplAttributes as $key => $value) {
            if ($value == NULL) {
                $form->$key = '';
            } else {
                $form->$key = $value;
            }
        }

        // render the formobj attributes
        //$form->form = $formOutput;

        return $form->render($formObj->templateFile);
    }
Render PHP template for form object

@param EasyForm $formObj
@param string $tplFile
@return string result of rendering process