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