Advertisement
Guest User

Untitled

a guest
Apr 7th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1. public function dropdown()
  2.     {
  3.         $data = $this->modal();
  4.        
  5.         $data['page_title'] = $this->title.' - '.$this->heading;
  6.         $data['heading']    = $this->heading;
  7.         $data['caption']    = 'Select any additional details.';
  8.         $data['auth_url']   = $this->authUrl;
  9.         $data['copy']       = $this->nameCopy;
  10.         $data['postUrl']    = '';
  11.        
  12.         $sectionId = 6; // Temporarily hardcoded
  13.        
  14.         $this->load->model('dropdown_model', 'dropdowns_m');
  15.         $this->load->model('dropdown_values_model', 'dropdown_values_m');
  16.    
  17.         $v_array = $this->dropdown_values_m->matchRealtor($this->realtorId)
  18.                                            ->with('dropdowns')
  19.                                            ->with('dropdown_values')
  20.                                            ->get_many_by('realtorId', $this->realtorId);
  21.        
  22.         $d_array = $this->dropdowns_m->matchRealtor($this->realtorId)
  23.                                      ->get_many_by('sectionId', $sectionId);
  24.    
  25.         $data['elements']   = (isset($d_array)) ? $d_array : FALSE;
  26.         $data['values']     = (isset($v_array)) ? $v_array : FALSE;
  27.        
  28.         $this->load->view($this->base.'/dreamapp_details_header_view', $data);
  29.         $this->load->view($this->base.'/dreamapp_dropdown_body_view', $data);
  30.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement