src/Easy/FormRenderer.php
static public function buildTemplateAttributes($formObj)
    {
        // Assocative Array to hold all Template Values
        // Fill with default viewobj attributes
        $tplAttributes = array();

        $tplAttributes['title'] = $formObj->title;
        $tplAttributes['errors'] = $formObj->errors;
        $tplAttributes['notices'] = $formObj->notices;
        $tplAttributes['formname'] = $formObj->objectName;
        $tplAttributes['module'] = $formObj->getModuleName($formObj->objectName);

        // if the $formobj form type is list render table, otherwise render record
        if (strtoupper($formObj->formType) == 'LIST') {
            $recordSet = $formObj->fetchDataSet();
            $tplAttributes['dataPanel'] = $formObj->dataPanel->renderTable($recordSet);
        } else {
            $record = $formObj->fetchData();
            $tplAttributes['dataPanel'] = $formObj->dataPanel->renderRecord($record);
        }

        if (isset($formObj->searchPanel)) {
            $search_record = $formObj->searchPanelValues;
            foreach ($formObj->searchPanel as $elem) {
                if (!$elem->fieldName) {
                    continue;
                }
                $post_value = Openbizx::$app->getClientProxy()->getFormInputs($elem->objectName);
                if ($post_value) {
                    $search_record[$elem->fieldName] = $post_value;
                }
            }
            $tplAttributes['searchPanel'] = $formObj->searchPanel->renderRecord($search_record);
        } else {
            $tplAttributes['searchPanel'] = $formObj->searchPanel->render();
        }
        $tplAttributes['actionPanel'] = $formObj->actionPanel->render();
        $tplAttributes['navPanel'] = $formObj->navPanel->render();

        if (isset($formObj->wizardPanel)) {
            $tplAttributes['wizardPanel'] = $formObj->wizardPanel->render();
        }
        $tplAttributes['form'] = $formObj->outputAttrs();

        return $tplAttributes;
    }
static public function buildTemplateAttributes($formObj)
    {
        // Assocative Array to hold all Template Values
        // Fill with default viewobj attributes
        $tplAttributes = array();

        $tplAttributes['title'] = $formObj->title;
        $tplAttributes['errors'] = $formObj->errors;
        $tplAttributes['notices'] = $formObj->notices;
        $tplAttributes['formname'] = $formObj->objectName;
        $tplAttributes['module'] = $formObj->getModuleName($formObj->objectName);

        // if the $formobj form type is list render table, otherwise render record
        if (strtoupper($formObj->formType) == 'LIST') {
            $recordSet = $formObj->fetchDataSet();
            $tplAttributes['dataPanel'] = $formObj->dataPanel->renderTable($recordSet);
        } else {
            $record = $formObj->fetchData();
            $tplAttributes['dataPanel'] = $formObj->dataPanel->renderRecord($record);
        }

        if (isset($formObj->searchPanel)) {
            $search_record = $formObj->searchPanelValues;
            foreach ($formObj->searchPanel as $elem) {
                if (!$elem->fieldName) {
                    continue;
                }
                $post_value = Openbizx::$app->getClientProxy()->getFormInputs($elem->objectName);
                if ($post_value) {
                    $search_record[$elem->fieldName] = $post_value;
                }
            }
            $tplAttributes['searchPanel'] = $formObj->searchPanel->renderRecord($search_record);
        } else {
            $tplAttributes['searchPanel'] = $formObj->searchPanel->render();
        }
        $tplAttributes['actionPanel'] = $formObj->actionPanel->render();
        $tplAttributes['navPanel'] = $formObj->navPanel->render();

        if (isset($formObj->wizardPanel)) {
            $tplAttributes['wizardPanel'] = $formObj->wizardPanel->render();
        }
        $tplAttributes['form'] = $formObj->outputAttrs();

        return $tplAttributes;
    }
Gather all template variables needed. Should play well with Smarty or \Zend templates

@param WebPage $formObj
@return array associative array holding all needed VIEW based template variables