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

        //Translate Array of template variables to \Zend template object
        foreach ($tplAttributes as $key => $value) {
            if ($value == NULL) {
                $view->$key = '';
            } else {
                $view->$key = $value;
            }
        }
        if ($viewObj->consoleOutput) {
            echo $view->render($viewObj->templateFile);
        } else {
            return $view->render($viewObj->templateFile);
        }
    }
static protected function renderPHP($viewObj, $tplAttributes = Array())
    {
        $view = TemplateHelper::getZendTemplate();
        $tplFile = TemplateHelper::getTplFileWithPath($viewObj->templateFile, $viewObj->package);
        $view->addScriptPath(dirname($tplFile));

        //Translate Array of template variables to \Zend template object
        foreach ($tplAttributes as $key => $value) {
            if ($value == NULL) {
                $view->$key = '';
            } else {
                $view->$key = $value;
            }
        }
        if ($viewObj->consoleOutput) {
            echo $view->render($viewObj->templateFile);
        } else {
            return $view->render($viewObj->templateFile);
        }
    }
Render PHP template for view object

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