21487 Posts in 5783 Topics by 2621 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 347 Views |
-
SS 3.01 Director::urlParam

10 August 2012 at 1:24am
Hi,
from SS verzion 3.0 this is deprecated:
$action = Director::urlParam( 'Action' );How can I can get param when I want it from module?
-
Re: SS 3.01 Director::urlParam

12 August 2012 at 12:34pm
From the controller you can use $this->getAction(). If you want the action name from outside the controller you first have to get the current controller:
$curr = Controller::curr();
$curr->getAction() -
Re: SS 3.01 Director::urlParam

26 August 2012 at 10:27pm
not sure which was is recommended, but i've been using
$Params = $this->getURLParams();
which gives:
$Params['Action']
$Params['ID']
$Params['OtherID'] -
Re: SS 3.01 Director::urlParam

26 August 2012 at 10:53pm Last edited: 26 August 2012 11:06pm
No, $Params = $this->getURLParams(); cannot be used.
Error: Call to undefined method CompactNavigator::getULRParams()
| 347 Views | ||
|
Page:
1
|
Go to Top |



