How do I create a variable that I can use in both PHP and SS templates?
For example:
In my Page.php I can write a simple function:
public function LatestNewsID() {
return 150;
}
This allows me to use that var in a SS template something like this:
<% if LatestNewsID = 150 %>
Do something with $LatestNewsID
<% else %>
Do something else
<% end_if %>
However, how do I reference the same variable in a PHP template?
jf/