22977 Posts in 11742 Topics by 2826 members
|Go to End|
6 March 2012 at 11:06pm
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 %>
<% 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?
7 March 2012 at 8:18am
Please post your function to http://www.pastie.org and let me know what data you're trying to access from your function.
7 March 2012 at 7:23pm
You have to use $Top to call the topmost controller, $Top.MyControllerFunction.
8 March 2012 at 7:35am
Thanks Willr Excellent.
|Go to Top|