View Single Post
  #8 (permalink)  
Old 11-28-2007, 02:36 AM
Elemental's Avatar
Elemental Elemental is offline
Senior Member
 
Join Date: Jul 2007
Posts: 122
Default

Quote:
Originally Posted by Leif.Högberg View Post
You would access the variables in the controller using parent::_getParam(variableName);
Thought I should add that incase it wasn't clear.
More commonly you see this.
Code:
//gets one param with the key of 'foo'
$this->_request->getParam('foo');

//gets all params and returns an array
$this->_request->getParams();
The params are part of the request object. I would think that parent:: would point to the Zend_Controller_Action class that your controller is extending vs. the request object.
Reply With Quote