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 signupAction() { $req_id = $this->getRequest()->getParam("id"); 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; if ($req_id == 1) { Application_Form_FrmMessage::redirectUrl("/index/booking"); } elseif ($req_id == 2) { Application_Form_FrmMessage::redirectUrl("/taxi/index"); } elseif ($req_id == 3) { Application_Form_FrmMessage::redirectUrl("/index/citytourbooking"); } elseif ($req_id == 4) { Application_Form_FrmMessage::redirectUrl("/stuffbooking/index"); } else { Application_Form_FrmMessage::redirectUrl("customer/dashboard"); } } }