public function editAction() { // $this->_helper->layout()->disableLayout(); $db = new Application_Model_DbTable_DbCustomer(); if ($this->getRequest()->isPost()) { $_data = $this->getRequest()->getPost(); $db->updatecustomer($_data); Application_Form_FrmMessage::Sucessfull("your profile has been update! ", "/customer/dashboard"); } $session_user = new Zend_Session_Namespace('customer'); $user_id = $session_user->customer_id; $row_customer = $db->getUserById($user_id, 1); $fm = new Application_Form_FrmBooking(); $frm = $fm->FrmCustomer($row_customer); Application_Model_Decorator::removeAllDecorator($fm); $this->view->frm_client = $frm; $this->view->customer_data = $row_customer; $this->view->customer_name = $session_user->customer_name; $this->view->old_photo = $row_customer['photo']; }