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);
    }