Hi,
I have a question about accessing variables in templates.
If I have classes Foo & Bar
class Foo extends Page
{
static $db = array(
'ContainedItem' => 'Bar'
);
}
class Bar extends Page
{
static $db = array(
'MyDate' => 'Date'
);
}
I would like to know how to get at MyDate from Foo.ss
... along the lines of
<% if Bar %>
<% control Bar %>
???? <- Here I want to do a comparison with the current date (if CurrentDate < MyDate) unsure how to do that also.
<% end_control %>
<% end-if %>
Any help you can offer would be greatly appreciated.
Regards,
Scott