22997 Posts in 11853 Topics by 2828 members
|Go to End|
10 August 2012 at 1:24am
from SS verzion 3.0 this is deprecated:
$action = Director::urlParam( 'Action' );
How can I can get param when I want it from module?
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();
26 August 2012 at 10:27pm
not sure which was is recommended, but i've been using
$Params = $this->getURLParams();
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()
|Go to Top|