I have an (understanding) problem with the pretty URL idea.
I read the tutorial on the cmsms website and I did the same with my own module:
1. I extended the SetParameters() function with:
Code: Select all
$this->RegisterRoute('/hands\/(?P<selectedhand>[0-9]+)\/(?P<returnid>[0-9]+)$/', array('action'=>'default'));
2. I modified one of the links:
Code: Select all
$this->CreateLink($id, 'viewhand', $returnid, $temp_h, array('selectedhand'=>$row['id']), '', '', '', '', '', [b]'hands/'.$row['id'].'/'.$returnid[/b]);
I get no error message - I have a list with some objects and when I select 1 of them the linkbar in my browser says www.blabla.com/index.php/hands/156/18/, but the specified object details are not shown, but the list (with all objects) instead.
Am I missing something?
Thanks in advance.