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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

extending menu controller

Go to End

2 Posts   1847 Views


Community Member, 9 Posts

19 March 2008 at 12:46am

I'd like to extend menu controller by adding the function to modify my links:
function myLink() {
return $this->Link() . "?fv=".$_GET['fv'];

I've added it now to: class Page_Controller extends ContentController
the value of $myLink variable shows now on the page but still have empty value
withing menu (take a look below):
<% control Menu(2) %>
<% end_control %>

what should I do to get value of $newLink within control Menu(2) ??

thanks in advance


Community Member, 473 Posts

19 March 2008 at 7:23am

Your function is myLink(), so why are you using $newLink?