Advertisement
Guest User

Untitled

a guest
Jan 14th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1. function index()
  2.     {
  3.         $asociados = $this->asociacion_model->view_all('inst_id,inst_nombre','v_inst_ml_arc',FALSE,'inst_nombre','inst_nombre')->result_array();
  4.  
  5.         if ($asociados) {
  6.            
  7.             foreach ($asociados as $value) {
  8.  
  9.                 $ml = $this->asociados->view_all('*','v_inst_ml_arc',array('inst_id' => $value['inst_id']),FALSE,FALSE)->result_array();
  10.  
  11.                 $asociados[$value['inst_nombre']] = $ml;
  12.             }
  13.  
  14.             $this->data['asociados'] = $asociados;
  15.  
  16.         }else{
  17.  
  18.             $this->data['asociados'] = FALSE;
  19.         }
  20.        
  21.         $this->data['message'] = (validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata('message')));
  22.  
  23.         $this->template->webpage_render('webpage/asociados', $this->data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement