Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function index()
- {
- $asociados = $this->asociacion_model->view_all('inst_id,inst_nombre','v_inst_ml_arc',FALSE,'inst_nombre','inst_nombre')->result_array();
- if ($asociados) {
- foreach ($asociados as $value) {
- $ml = $this->asociados->view_all('*','v_inst_ml_arc',array('inst_id' => $value['inst_id']),FALSE,FALSE)->result_array();
- $asociados[$value['inst_nombre']] = $ml;
- }
- $this->data['asociados'] = $asociados;
- }else{
- $this->data['asociados'] = FALSE;
- }
- $this->data['message'] = (validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata('message')));
- $this->template->webpage_render('webpage/asociados', $this->data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement