Hi, let me explain my porblem. I#m lookinfg for answers for hours.
I want a text to show up on my site's footer, so i declared a var $text in code/HomePage.php to make this text editable in the cms. Works so far. I access the var by $text in page.ss.
But it is just shown if $Layout (in page.ss) is rendered by using HomePage.ss. How do i get global access to these kind of vars?
What are you trying to do with this line? The second argument has to be a filter (something like 'ID = $ID'). Where are you trying to get $var from as I cant see it in your function and your not passing it in....