protected function _fillWactTemplate($template) { foreach ($this->getVariables() as $variable_name => $value) { $template->set($variable_name, $value); } foreach ($this->forms_datasources as $form_id => $datasource) { $form_component = $template->getChild($form_id); $form_component->registerDataSource($datasource); } foreach ($this->forms_errors as $form_id => $error_list) { $form_component = $template->getChild($form_id); if (!$error_list->isValid()) { lmb_require('limb/wact/src/components/form/error.inc.php'); $wact_error_list = new WactFormErrorList($error_list->getArray()); $wact_error_list->bindToForm($form_component); } } }