Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
In my controller I have a function which I want to call in my template.
This works fine, however when I am in a control loop eg,
<% control articles %>
<p>$Name</p> :) $MyControllerFunction
<% end_control %>
It outputs $Name fine, but fails on $MyControllerFunction as it seems to be trying to access a method/property on the article.
How can I get the controller function?
Please post your function to http://www.pastie.org and let me know what data you're trying to access from your function.
You have to use $Top to call the topmost controller, $Top.MyControllerFunction.
Thanks Willr :) Excellent.