public function edit() { $customerId = $this->input->post('customerId'); if (empty($customerId)) { return; } $customerService = new CustomerService(); $customerData = $customerService->fetchById($customerId); if (empty($customerData)) { return; } $this->renderAjaxView('edit', array('customer' => $customerData)); }