3060 Posts in 864 Topics by 646 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1016 Views |
-
Confused about 2.4 / nested Urls / display DataObject

7 May 2010 at 11:19pm
Hi Forum,
here is my issue:
SS 2.4.0 rc3Nested URls are enabled.
On a custom Pagetype there is a method 'details', that should display a DataObject Record.Because of using nested URLs the URL can be:
/level1/level2/level3/details/my-object-urlsegmentinside the Controller
public function details()
{//$UrlSegment = Director::URLParam('ID');
// Line above does not work - content of $URLSegment is 'level3'// the following line works - but why ?
$UrlSegment = $this->getRequest()->param('ID');}
{/code]Greetings,
Robert
| 1016 Views | ||
|
Page:
1
|
Go to Top |

