Say I have a function in mysite/code/Page.php:
helloWorld() {
return 'hello world';
}
If I'm editing a template, it's as easy as typing $helloWorld wherever I want the output of my function. What I want to do is be able to do this from SilverStripe Admin when I (or a user) is editing a page.
How would I do this without tearing SS apart? Is this not proper separation of MVC?