Hello guys,
have been searching this forum for a solution - but found none.
I need to get the $id and $returnid used by DoAction files to create a link from outside the module (in an ajax file).
I have an instance of the module - how do I get the module $id and module $returnid?
How to get the $id and $returnid from a module
Re: How to get the $id and $returnid from a module
Still need it - what I mean is I need a way to get the $id and $returnid (this one I can get now though) from the $this object I get in my own methods of the module.
Basically I made a new function inside the module php file, and inside that I need a frontendlink made where I need to have the $id and $returnid.
How do I get the $id part? The first part of the link with stuff like:
IMtema,m0cfd6,
Please help - I can't make much sense of the API
Basically I made a new function inside the module php file, and inside that I need a frontendlink made where I need to have the $id and $returnid.
How do I get the $id part? The first part of the link with stuff like:
IMtema,m0cfd6,
Please help - I can't make much sense of the API

Re: How to get the $id and $returnid from a module
CG* modules define a {$module_id} (or similar) Smarty variable that can be used when a module is instantiated on a page.
- kidcardboard
- Forum Members
- Posts: 54
- Joined: Mon Sep 28, 2009 5:25 pm
Re: How to get the $id and $returnid from a module
Try assigning it to a smarty variable in the php file and then use it in the template.
Code: Select all
$smarty->assign('id', $id);
$smarty->assign('returnid', $returnid);