[Solved] how to query array use to jquery ui tabs? [closed]


Im not sure exactly what you mean but I believe youre trying to grab data from your array to insert into ui tabs. This is what I would do in MVC:

View:

<li class="tab" id=""><a href="#<?php echo $variable; ?>">Test</a></li>
<li class="tab" id=""><a href="#<?php echo $variable; ?>">Test</a></li>
<li class="tab" id=""><a href="#<?php echo $variable; ?>">Test</a></li>
<li class="tab" id=""><a href="#<?php echo $variable; ?>">Test</a></li>
<li class="tab" id=""><a href="#<?php echo $variable; ?>">Test</a></li>

Controller:

function expand_staff_info($staff_info) {
   $data = $this->Model_request->getData();
   $this->load->view('agents/view_staff_info', $data);
}

Model:

 function getData() {
  $array = array(..... YOUR ARRAY ......);
  $data;
   foreach ($array as $row) {
     foreach ($row as $key => $val) {
        $data[$key] = $val;
     }
   }
  return $data;
}

1

solved how to query array use to jquery ui tabs? [closed]