compiler = $compiler; $this->required_attributes = array('file'); $this->optional_attributes = array('section', 'scope'); // check and get attributes $_attr = $this->_get_attributes($args); // save posible attributes $conf_file = $_attr['file']; if (isset($_attr['section'])) { $section = $_attr['section']; } else { $section = 'null'; } $scope = '$_smarty_tpl->smarty'; if (isset($_attr['scope'])) { if ($_attr['scope'] == '\'local\'') { $scope = '$_smarty_tpl'; } elseif ($_attr['scope'] == '\'parent\'') { $scope = '$_smarty_tpl->parent'; } } // create config object $_output = "smarty, \$_smarty_tpl);"; $_output .= "\$_config->loadConfigVars($section, $scope); ?>"; return $_output; } } ?>