function signupAction() { if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost(); $db = new Application_Model_DbTable_DbCustomer(); $id = $db->signUp($data); $user_name = $db->getUserById($id, 2); $customer_session = new Zend_Session_Namespace('customer'); $customer_session->customer_session = 1; $customer_session->customer_id = $id; $customer_session->customer_name = $user_name; $user_id = $db->getCustomerId($user_name); $user_info = $db->getUserById($id, 1); $customer_session->last_name = $user_info['last_name']; $customer_session->first_name = $user_info['first_name']; $customer_session->user_info = $user_info; $this->_redirect("/stuffbooking"); } else { $this->_redirect("/stuffbooking"); } }
function signupAction() { if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost(); $db = new Application_Model_DbTable_DbCustomer(); $id = $db->signUp($data); $user_name = $db->getUserById($id, 2); $customer_session = new Zend_Session_Namespace('customer'); $customer_session->customer_session = 1; $customer_session->customer_id = $id; $customer_session->customer_name = $user_name; $user_id = $db->getCustomerId($user_name); $user_info = $db->getUserById($id, 1); $customer_session->pwd = $password; $customer_session->last_name = $user_info['last_name']; $customer_session->first_name = $user_info['first_name']; $customer_session->user_info = $user_info; $this->_redirect("/taxi/index"); //Application_Form_FrmMessage::redirectUrl("/taxi/index"); } else { } }
function signuptaxiAction() { if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost(); $db = new Application_Model_DbTable_DbCustomer(); $id = $db->signUp($data); $user_name = $db->getUserById($id, 2); $step_four = new Zend_Session_Namespace('step_four'); $customer_session = new Zend_Session_Namespace('customer'); $customer_session->customer_session = 1; $step_four->step4 = 1; $customer_session->customer_id = $id; $customer_session->customer_name = $user_name; Application_Form_FrmMessage::redirectUrl("/taxi/index"); } }