public function indexAction() { //$key = (empty($this->_getParam('key'))) ? $this->_key : $this->_getParam('key'); //$secret = (empty($this->_getParam('secret'))) ? $this->_secret : $this->_getParam('secret'); $key = $this->_k != $this->_getParam('key') ? $this->_getParam('key') : $this->_key; $secret = $this->_s != $this->_getParam('secret') ? $this->_getParam('secret') : $this->_secret; $settings = new Application_Model_Users(array('user' => $this->_user, 'key' => $key, 'secret' => $secret, 'cid' => $this->_getParam('cid'))); $mapper = new Application_Model_UsersMapper(); $mapper->save($settings); $this->_helper->redirector('index', 'index'); }