Hi<br><br>I'm trying to do a simple thing in D6: Add a variable to the page template. Unfortunately it seams, that it gets lost in theme_render_template.<br><br>This is my code in the template.php:<br><br>function ylt_preprocess_page(&$vars) {<br>
$vars['rabarber'] = 'rabarber';<br>}<br><br>theme_render_template looks like this:<br><br>function theme_render_template($template_file, $variables) {<br> extract($variables, EXTR_SKIP); // Extract the variables to a local namespace<br>
ob_start(); // Start output buffering<br> include "./$template_file"; // Include the template file<br> $contents = ob_get_contents(); // Get the contents of the buffer<br> ob_end_clean(); // End buffering and discard<br>
return $contents; // Return the contents<br>}<br><br>I can see rabarber in $variables, but it never ends up beeing extracted. Actually $variables contains about 47 entries but only about 12 of them get extracted.<br>
<br>Is this a bug or am I doing something wrong?<br><br>Best Regards<br>Ernst<br><br><br>