protected function nonce()
    {
        $action = ($this->getParameter('action') == null) ?
                    $this->RequestContext->getControls()->getControl('action')
                  : $this->getParameter('action');

        return $this->Nonces->create($action);
    }
protected function nonce()
    {
        $action = ($this->getParameter('action') == null) ?
                    $this->RequestContext->getControls()->getControl('action')
                  : $this->getParameter('action');

        return $this->Nonces->create($action);
    }
protected function nonce ( ) { $ action = ( $ this -> getParameter ( 'action' ) == null ) ? $ this -> RequestContext -> getControls ( ) -> getControl ( 'action' ) : $ this -> getParameter ( 'action' ) ; return $ this -> Nonces -> create ( $ action ) ; }
Creates a nonce for the current or specified action

Expected Param:
action string (optional) The action that the nonce will be valid for.
If not specified, the current action will be used

@return string
Creates a nonce for the current or specified action