problems with $params

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
kazkas

problems with $params

Post 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?
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: problems with $params

Post by Dee »

Try CreateFrontendLink, that should do it. (note that the order of parameters differs).

Regards,
D
kazkas

Re: problems with $params

Post 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?
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: problems with $params

Post 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
Locked

Return to “CMSMS Core”