Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function dropdown()
- {
- $data = $this->modal();
- $data['page_title'] = $this->title.' - '.$this->heading;
- $data['heading'] = $this->heading;
- $data['caption'] = 'Select any additional details.';
- $data['auth_url'] = $this->authUrl;
- $data['copy'] = $this->nameCopy;
- $data['postUrl'] = '';
- $sectionId = 6; // Temporarily hardcoded
- $this->load->model('dropdown_model', 'dropdowns_m');
- $this->load->model('dropdown_values_model', 'dropdown_values_m');
- $v_array = $this->dropdown_values_m->matchRealtor($this->realtorId)
- ->with('dropdowns')
- ->with('dropdown_values')
- ->get_many_by('realtorId', $this->realtorId);
- $d_array = $this->dropdowns_m->matchRealtor($this->realtorId)
- ->get_many_by('sectionId', $sectionId);
- $data['elements'] = (isset($d_array)) ? $d_array : FALSE;
- $data['values'] = (isset($v_array)) ? $v_array : FALSE;
- $this->load->view($this->base.'/dreamapp_details_header_view', $data);
- $this->load->view($this->base.'/dreamapp_dropdown_body_view', $data);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement