I want to add some variables to page.tpl.php via template.php so i guess i need to use my_theme_preprocess_page. But my variables does not seem to be passing through.
I am using something like this 🙂 In template.php
function my_theme_preprocess_page(&$vars) { $vars['myvar'] = "value"; }
and in page.tpl.php
print $myvar;
and $myvar fails; also tried defininig it with $vars[‘page’][‘myvar’] = “value”; and reading it back with print ($page[‘myvar’]); but with no luck, variable (or index) stays undefined.
I cleared cache.
Any clues why this does not work ? Thanks!