CodeIgniter Forums
href redirect to control - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: href redirect to control (/showthread.php?tid=43438)



href redirect to control - El Forum - 07-11-2011

[eluser]Mainboard[/eluser]
hey everyone, i have some problem with a little redirection, i try to create a little intranet with codeigniter and i call my principal menu of one database, the problem is when i saw the links of my principal menu this links redirect to my controller, this is
My View
Code:
<?php foreach($menu_enc as $menue): ?>
   &lt;? echo '<a class="current">link.' target='.$menue->destino.'>'.$menue->nombre_enc.'</a>';?&gt;
&lt;?php endforeach; ?&gt;

My Controller
Code:
function members_area() {
            
         $this->load->model('menu_det_model');
         $this->load->model('menu_enc_model');
         $results_det = $this->menu_det_model->call_menu_det();
         $results_enc = $this->menu_enc_model->call_menu_enc();
         $data['menu'] = $results_det['rows'];
         $data['menu_enc'] = $results_enc['rows_enc'];
         //$data['main'] = $results_enc['rows_enc']
         //$data['num_results'] = $results['num_rows'];
        $this->load->view('index2', $data);
        
    }

my menu works perfect but the links redirect to my control and i need to redirect to the others views, the idea is to change my iframe or main to my website when a click to some button of my menu.