SocialEngine Tutorial

Get URL parameters

1. get parameters from URL

URL: /controller/action/id/value/id2/value2/....../idN/valueN

 

$this->_getAllParams()

$this->_request->getParams();

 

array (size=5)
  'action' => string 'outbox' (length=6)
  'a' => string '456' (length=3)
  'module' => string 'messages' (length=8)
  'controller' => string 'messages' (length=8)
  'rewrite' => string '1' (length=1)

 

 

For specific parameter use:

$this->_request->getParam("id");

$this->_getParam("id")