add user register info(addr,unit,phone)

This commit is contained in:
cuixin 2015-02-13 19:16:17 +08:00
parent 3cead0e3e7
commit 965c97eda4
2 changed files with 10 additions and 3 deletions

View File

@ -89,6 +89,10 @@ class Account extends AbstractEventManager implements ServiceManagerAwareInterfa
'password' => md5($data['password']), 'password' => md5($data['password']),
'usertype' => $this->RoleMember, 'usertype' => $this->RoleMember,
'email' => $data['email'], 'email' => $data['email'],
'realname' => $data['realname'],
'phone' => $data['phone'],
'unit' => $data['unit'],
'address' => $data['address']
]; ];
// $dbh = new TableGateway($this->memberTable, Zend_Db::getInstance()); // $dbh = new TableGateway($this->memberTable, Zend_Db::getInstance());
@ -205,7 +209,10 @@ class Account extends AbstractEventManager implements ServiceManagerAwareInterfa
'password' => $request->getParam('password'), 'password' => $request->getParam('password'),
'confirm_password' => $request->getParam('confirm_password'), 'confirm_password' => $request->getParam('confirm_password'),
'email' => $request->getParam('email'), 'email' => $request->getParam('email'),
'realname' => $request->getParam('realname') 'realname' => $request->getParam('realname'),
'phone' => $request->getParam('phone'),
'unit' => $request->getParam('unit'),
'address' => $request->getParam('address')
); );
return $data; return $data;

View File

@ -78,7 +78,7 @@ class Account implements EventManagerAwareInterface
//注册 //注册
public function register($data) public function register($data)
{var_dump($data); {var_dump($data);exit;
$params = compact('data'); $params = compact('data');
$results = $this->getEventManager()->trigger('register.pre', $this, $params); $results = $this->getEventManager()->trigger('register.pre', $this, $params);
$cache_data = $results->last(); $cache_data = $results->last();