Page 1 of 1

problems with $params

Posted: Wed Dec 27, 2006 2:19 pm
by kazkas
strange thing:

I wrote module. On my windows localhost everything worked perfect. Then I move site to Linux server and problems started. When You create link with

$link1 = $this->CreateLink($id, 'default', $returnid, $row['raide'], array('raide'=>$row['raide'], 'pass'=>$pass));

you get something like

http://.../index.php?mact=Zodynas,cntnt01,default,0&cntnt01raide=E&cntnt01pass=&cntnt01returnid=15

But on Linux, $print_r($params) in begining of action.default.php returns:

Array ( [module] => Zodynas [action] => default )

and nothing more. Where all other params gone? Other modules or admin panel for this module works fine, only this one. Please, Can someone give any ideas?

Re: problems with $params

Posted: Wed Dec 27, 2006 6:34 pm
by Dee
Try CreateFrontendLink, that should do it. (note that the order of parameters differs).

Regards,
D

Re: problems with $params

Posted: Wed Dec 27, 2006 7:08 pm
by kazkas
nope, still don't work  :-\ even default.php like

CreateLink($id, 'default', $returnid, "A", array('raide'=>$row['raide'], 'pass'=>$pass));
  echo $linkas;
?>

return the same thing:

Array ( [module] => Zodynas [action] => default ) A

My brain will blow out :/ It can't be error in those 3 lines, can't it?

Re: problems with $params

Posted: Wed Dec 27, 2006 8:38 pm
by Dee
kazkas wrote: My brain will blow out :/ It can't be error in those 3 lines, can't it?
Indeed it seems it can't, that code works fine overhere, when I follow the "A" link (I assigned $pass for testing):
Array ( [raide] => [pass] => test [returnid] => 51 [action] => default ) A