Page 1 of 1

CreateLink() - links to admin section

Posted: Mon Mar 22, 2010 7:09 pm
by bbonora
Hello --

I'm having a little problem with a module I'm working on. The module is an event registration module. When a new event is created it gives the admin user the option to include the event in CGCalendars. I can add the record to CGCalendars without any trouble at all. The issue that I'm having has to do with a link that I would like to include in the description of CGCalendars.

I create the link like this:

Code: Select all

$signuplink = $this->CreateLink($id,'signup',$returnid,$this->Lang('signup'),array('eventid'=>$eventid));
And then pass the variable $signuplink to CGCalendar description field. Once the link is in CGCalendar it outputs this:

http://dev.golfservers.net/admin/module ... _eventid=5

and it's suppose to output this:

http://dev.golfservers.net/index.php?ma ... eturnid=58

This is how I have created the above link - this link is passed to smarty and outputed using a smarty tpl:

Code: Select all

$this->CreateLink($id,'signup',$returnid,$this->Lang('signup'),array('eventid'=>$row['event_id']));
I'm not sure why this is occurring but I would greatly appreciate any help on the issue.

Re: CreateLink() - links to admin section

Posted: Sat Apr 03, 2010 9:28 am
by irish
You probably need to use the CreateFrontendLink instead of the CreateLink method.