Page 1 of 1

[SOLVED] createlink from module to FrontEndUsers

Posted: Wed Nov 28, 2012 11:18 am
by magallo
Hi guys, i'd appriciate if someone could help with the following:

Inside my CartMadeSimple module files i'm trying to create a link to FrontEndUsers module where i will see the user detail info:

Code: Select all

$onerow->username = $this->CreateLink($id, 'edituser', $returnid, $row['username'], array('user_id' => $row['customer_id']));
what i get is:
moduleinterface.php?mact=CartMadeSimple,m1_,edituser,0&_sx_=1fe148af&m1_user_id=19

how do i change the "mact=CartMadeSimple" to "mact=FrontEndUsers" ?

Thanks

Re: createlink from module to FrontEndUsers

Posted: Wed Nov 28, 2012 12:29 pm
by Jos
Maybe something like this?

Code: Select all

$mod = cms_utils::get_module('FrontEndUsers');
$onerow->username = $mod->CreateLink($id, 'edituser', $returnid, $row['username'], array('user_id' => $row['customer_id']));

Re: createlink from module to FrontEndUsers [SOLVED]

Posted: Wed Nov 28, 2012 2:28 pm
by magallo
PERFECT!, thanks